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.

Archive

Mardown extra

Started by Muut Archive 12 years ago · 5 replies · 700 views
12 years ago

I have enable markdown extra in system.yaml, but the syntax mixing markdown and html (using markdown="1" in html tag) doesn't work.

I missed something somewhere ?

Thank you for your help

12 years ago

Can you try this example as provided on the Michel Fortin site?

HTML
<div markdown="1">
This is *true* markdown text.
</div>

Does that work? If not, can you try setting markdown_extra: true in your page header. Does that work?

12 years ago

BTW I just tested this and it works fine with setting in system.yaml:

YAML
pages:
  markdown_extra: true

and also with page header:

TXT
markdown_extra: true

Both methods work fine with that example HTML above

12 years ago

thank you all for your answers. You right, with the example of Michel Fortin, no problem, but with my page, it didn't work!

I look for the problem and I found it: if in the html part, you have some html characters like "& nbsp;" or "& copy;" (without space after & of course), there no interpretation of the markdown syntax. This problem don't seem to come from Markdown Extra, I use it wih other CMS like picoCMS and it work with html characters.

12 years ago

It works if html characters gave in hex format (for example: & #xa9; for & copy;)..But it's a little bit harder to remember it ;-)

12 years ago

ok that's a little strange. We're just running through the markdown extra processor. I don't think there's any other processing going on before that which would cause a problem. I will look into it though. Cheers!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1297 9 years ago
Archive · by Muut Archive, 9 years ago
2 894 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2899 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago