Horizontal Rule (- - -) After a Tag (#)

Steps to reproduce

Type the markdown shown in the image below, minimally a tag directly followed by a horizontal rule on the next line.
image

Expected result

A horizontal line under the tags.

Actual result

Sadly no line is shown.
image

Environment

  • Operating system: Windows 10
  • Debug info: N/a

Additional information

No CSS used!

You need a line between the tags and the horizontal rule bc in markdown, having (—) underneath makes the text a header (which is why the tags in your example are bigger)

Demo

Sample shown

#foo #bar
---

Result:

#foo #bar


Correct Syntax:

#foo #bar

---

#foo #bar


You need a line between the tags and the horizontal rule bc in markdown

I’m familiar with that workaround.

having (—) underneath makes the text a header

This is one of the symptoms of the bug, yes.

I think you are misunderstanding here. There is no a bug. Having (---) underneath a text makes that text a header.

That’s a strange alternate syntax to create a h2 header. :man_shrugging:

I think you are misunderstanding here. There is no a bug. Having (--- ) underneath a text makes that text a header.

Thanks anyways!

Setext-style headers are “underlined” using equal signs (for first-level headers) and dashes (for second-level headers). For example:

This is an H1
=============

This is an H2
-------------

https://daringfireball.net/projects/markdown/syntax#header

1 Like

Thanks, I’ve read it already.

If you must have a horizontal rule on the line under the tags (for example) then use HTML:

<hr>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.