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?
You can create a horizontal rule ( <hr /> ) by placing 3 or more hyphens, asterisks, or underscores on a single line by themselves.
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.
Horizontal Rule To add a Horizontal Rule In Readme we can use --- or *** or <hr> .
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.
---
on a line by itself works for me.
I'm using the Icarus theme, which displays the separator as a dashed line:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With