www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Release md v0.3.1

reply lempiji <lempiji gmail.com> writes:
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
next sibling parent Craig Dillabaugh <craig.dillabaugh gmail.com> writes:
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 ❤ Markdown
This is a really great idea. Thanks for your work on this.
May 08
prev sibling next sibling parent Jordan Wilson <wilsonjord gmail.com> writes:
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 ❤ Markdown
Cool! I'm definitely going to check it out. Jordan
May 08
prev sibling parent vladislavp <vladislavp outlook.com> writes:
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 ❤ Markdown
Thank 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