Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Modifying markdown to html interpretation

Started by Muut Archive 12 years ago · 2 replies · 454 views
12 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.

12 years ago

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

12 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 2590 9 years ago
Archive · by Muut Archive, 9 years ago
2 1703 9 years ago
Archive · by Muut Archive, 9 years ago
2 4996 9 years ago
Archive · by Muut Archive, 9 years ago
1 3826 9 years ago
Archive · by Muut Archive, 9 years ago
3 1810 9 years ago