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

Modifying markdown to html interpretation

Started by Muut Archive 11 years ago · 2 replies · 327 views
11 years ago

Hi,
How can I modify the way grav translate markdown to html ?
I mean my markdown files contains many H1 and h2 headers. And i'd to translate them to h4 and h5.
Thanks for your help.

11 years ago

mmm, i don't undestand why you wanna change this, you can change your md file with # title to #### title :)

11 years ago

I'm a little confused also. If you have h1, h2 headers but you want to render them smaller, simply override the font-size via CSS.

If you want to physically have them output as <h4> and <h5> tags, simply change the markdown to use the h4 and h5 tags: #### h4 and ##### h5.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4024 9 years ago
Archive · by Muut Archive, 9 years ago
1 2900 9 years ago
Archive · by Muut Archive, 9 years ago
3 1082 9 years ago