marp-team / marpit

The skinny framework for creating slide deck from Markdown
https://marpit.marp.app/
MIT License
948 stars 45 forks source link

Markdown directives to CSS elements #204

Closed myvaheed closed 4 years ago

myvaheed commented 4 years ago

Hi! Where can I see the accordance of the markdown directives to CSS elements. I couldn't find it in docs.

myvaheed commented 4 years ago

Example: # -> h1, ## -> h2 and so on

yhatt commented 4 years ago

See the specification of CommonMark. We won't document general knowledges about Markdown.

myvaheed commented 4 years ago

Thank you! In CommonMark spec there is an ability to include markdown text inside html code Example 157. But I cannot do it in Marpit. Screenshot_20191103_212846

yhatt commented 4 years ago

There is no restriction of HTML in Marpit. Probably you are using Marp Core, not Marpit. (Learn about our architecure at the contributing guide of marp-team)

By security reason, Marp Core has to enable HTML manually. If you are using Marp for VS Code, put a check markdown.marp.enableHtml from preferences.

See also #178 and https://github.com/marp-team/marpit/issues/162#issuecomment-490004489.

myvaheed commented 4 years ago

Thank you!