Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create horizontal line in Markdown (using hexo framework)

Tags:

I'm using the hexo framework and tried adding "---" or "***" in my .md file to get a horizontal line to show up, but it's not working.

Also tried enabling gfm markdown in my _config.yml file:

marked: gfm: true pedantic: false sanitize: false tables: true breaks: true smartLists: true smartypants: true modifyAnchors: '' autolink: true

Any clues? Or is there a way to embed HTML tags to posts?

like image 629
Joan Avatar asked Jun 17 '17 23:06

Joan


People also ask

How do I make a horizontal line in Markdown?

You can create a horizontal rule ( <hr /> ) by placing 3 or more hyphens, asterisks, or underscores on a single line by themselves.

How do you make a line across in Markdown?

A line with at least three hyphens will create a horizontal line across the entire comment or description. Include an extra line break after any text before the line of hyphens to prevent the hyphens from being interpreted as header syntax.

How do I add a horizontal line in readme?

Horizontal Rule To add a Horizontal Rule In Readme we can use --- or *** or <hr> .

How do you underline in Markdown?

Just use the HTML <u> tag (recommended) or the <ins> tag inside your markdown for this. The HTML tag <ins> is the HTML "insert tag", and is usually displayed as underlined.


1 Answers

--- on a line by itself works for me.

I'm using the Icarus theme, which displays the separator as a dashed line:

enter image description here

As @Waylan commented, you're CSS rules are probably preventing your horizonal line to display.

I've also found that preceding the --- line with a <br> line prevents the horizontal line from displaying.

like image 154
Zodman Avatar answered Sep 30 '22 04:09

Zodman