Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Markdown extra - add class to a text

Solved by Dimitri Longo View solution

Started by Alexander Kim 9 years ago · 4 replies · 1918 views
9 years ago

Just enabled Markdown extra, but couldn't make it work.

Tried some text{.right}, but {.right} just prints out as text. What's wrong?

9 years ago

@heihachi88

take a look à Markdown Extra doc

At this time, special attribute blocks can be used with

headers,
fenced code blocks,
links, and
images.

9 years ago Solution

in the docs ;-) here

HTML
<div markdown="1" class="foo">

  Paragraphs here inherit class foo from above.
  ## Headers here inherit class foo from above. ##

</div>

This requires Markdown Extra

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago