Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Markdown extra - add class to a text

Solved by Dimitri Longo View solution

Started by Alexander Kim 8 years ago · 4 replies · 1693 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 jean-louis67, 3 days ago
2 81 2 days ago
General · by Andy Miller, 7 days ago
0 146 7 days ago
General · by Veehem, 1 week ago
0 145 1 week ago
General · by milkboy, 1 week ago
0 138 1 week ago
General · by ian russell, 2 weeks ago
2 226 2 weeks ago