Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Markdown extra - add class to a text

Solved by Dimitri Longo View solution

Started by Alexander Kim 9 years ago · 4 replies · 1811 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 Andy Miller, 6 days ago
0 109 6 days ago
General · by lynbor, 1 month ago
3 438 2 weeks ago
General · by lynbor, 3 weeks ago
7 558 2 weeks ago
General · by Harry, 2 weeks ago
0 160 2 weeks ago
General · by Old Man Umby, 1 month ago
2 309 3 weeks ago