Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Markdown extra - add class to a text

Solved by Dimitri Longo View solution

Started by Alexander Kim 8 years ago · 4 replies · 1765 views
8 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?

8 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.

8 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago