silverstripe / silverstripe-lessons-v4

The source code for the SilverStripe.org Lessons section, version 4.x
Other
20 stars 68 forks source link

Markdown Inside of HTML Tags are not Rendered #89

Open manuth opened 4 years ago

manuth commented 4 years ago

On the website markdown-tags inside of html-blocks aren't rendered.

https://github.com/silverstripe/silverstripe-lessons-v4/blob/4c37713918f9ed8c6d1f48f776d5498daf2eb486/__tutorials/Lesson-00.md#L161-L163

This issue can be solved by either not using markdown-syntax inside of HTML-elements or by using a markdown-engine which supports Markdown-syntax inside of HTML.

In Kramdown, for example, you can use markdown-language inside of HTML-elements by adding a markdown="1"-attribute to the HTML-tag:

### Warning

<div class="alert alert-danger" markdown="1">
Markdown is **supported** inside this html-tag!
</div>