digitalmars.D.announce - Release md v0.3.1
- lempiji (16/16) May 07 2021 I have created a tool that executes the code blocks included in
- Craig Dillabaugh (2/12) May 08 2021 This is a really great idea. Thanks for your work on this.
- Jordan Wilson (3/19) May 08 2021 Cool! I'm definitely going to check it out.
- vladislavp (6/22) May 09 2021 Thank you for sharing.
I have created a tool that executes the code blocks included in Markdown. http://github.com/lempiji/md I'm sure some of everyone have experienced that the code examples in the documentation don't work. With this tool, you can execute Markdown code directly and always validate it with CI. ``` dub run md -- README.md ``` The syntax of dlang is not affected by indentation, and `import` can be written anywhere, so it was a very simple mechanism to achieve this. However, there may be a better way. If you found it, please try to create it. I think dlang ❤ Markdown
May 07 2021
On Friday, 7 May 2021 at 16:19:21 UTC, lempiji wrote:I have created a tool that executes the code blocks included in Markdown. http://github.com/lempiji/md``` The syntax of dlang is not affected by indentation, and `import` can be written anywhere, so it was a very simple mechanism to achieve this. However, there may be a better way. If you found it, please try to create it. I think dlang ❤ MarkdownThis is a really great idea. Thanks for your work on this.
May 08 2021
On Friday, 7 May 2021 at 16:19:21 UTC, lempiji wrote:I have created a tool that executes the code blocks included in Markdown. http://github.com/lempiji/md I'm sure some of everyone have experienced that the code examples in the documentation don't work. With this tool, you can execute Markdown code directly and always validate it with CI. ``` dub run md -- README.md ``` The syntax of dlang is not affected by indentation, and `import` can be written anywhere, so it was a very simple mechanism to achieve this. However, there may be a better way. If you found it, please try to create it. I think dlang ❤ MarkdownCool! I'm definitely going to check it out. Jordan
May 08 2021
On Friday, 7 May 2021 at 16:19:21 UTC, lempiji wrote:I have created a tool that executes the code blocks included in Markdown. http://github.com/lempiji/md I'm sure some of everyone have experienced that the code examples in the documentation don't work. With this tool, you can execute Markdown code directly and always validate it with CI. ``` dub run md -- README.md ``` The syntax of dlang is not affected by indentation, and `import` can be written anywhere, so it was a very simple mechanism to achieve this. However, there may be a better way. If you found it, please try to create it. I think dlang ❤ MarkdownThank you for sharing. If I have code that produces an image (eg .PNG) or another markdown block with an image. Is there way to make it work within the overall input .MD document (trying to think of a way to create an 'active' document)
May 09 2021