You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ my_file }} -> include the file and parse it as markdown
{{ my_file[start:end] }} -> include the lines comprised between start and end and parse them as markdown.
there are alternatives that have been proposed in various markdown flavor.
Ideally, it should allow optionally specifying the file type (overriding guessing it from file extension if needed), eg: jpg, csv, md, txt, codebock(?)
I'e seen somewhere github doesn't support it because of security concerns, however I'd like to understand more that concern ; it doesn't seem relevant as far as nim-markdown is concerned
different flavors of markdown use a different syntax for this feature
other syntax I've seen:
[![Watch the video](https://raw.github.com/GabLeRoux/WebMole/master/ressources/WebMole_Youtube_Video.png)](http://youtu.be/vt5fpE0bzSY)
Close this issue. Nim-markdown is aimed to support commonmark & gfm as of now. File transclusion is not in these specs. It's encouraging to implement it as an extension in library users' projects.
I've added a section to advance usages: Customize Parsing. It provides an example on parsing and rendering for content like #include "filename.md". You can follow the same pattern to support rules such as {{ filename.md }}.
basically this feature request: github/markup#346
use cases
include
) to markdownsyntax
as proposed here: https://talk.commonmark.org/t/transclusion-or-including-sub-documents-for-reuse/270/3
there are alternatives that have been proposed in various markdown flavor.
Ideally, it should allow optionally specifying the file type (overriding guessing it from file extension if needed), eg: jpg, csv, md, txt, codebock(?)
caveats
github doesn't seem to support this feature
Github doesn't provide this feature even for reStructuredText (rst) which has include directive in the official language spec : README.rst :include: directive doesn't work github/markup#172
I'e seen somewhere github doesn't support it because of security concerns, however I'd like to understand more that concern ; it doesn't seem relevant as far as nim-markdown is concerned
different flavors of markdown use a different syntax for this feature
other syntax I've seen:
links
Re-use documentation => Modular Markdown for README.md to "include" instead of "link" to another file · Issue #471 · isaacs/github
https://stackoverflow.com/questions/4279611/how-to-embed-a-video-into-github-readme-md
README.rst :include: directive doesn't work · Issue #172 · github/markup
https://pypi.org/project/markdown-include/
https://github.com/sethen/markdown-include
idea: include files and long tables · Issue #553 · jgm/pandoc
Markdown and including multiple files - Stack Overflow
https://fletcher.github.io/MultiMarkdown-5/transclusion.html
The text was updated successfully, but these errors were encountered: