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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Markdown extra - add class to a text

Solved by Dimitri Longo View solution

Started by Alexander Kim 8 years ago · 4 replies · 1579 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 14 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago