Skip to content
Snippets Groups Projects
Unverified Commit a2f60768 authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

Fix display of horizontal lines in dashboard text cards (#20177)

parent 660a534d
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,10 @@
height: auto;
}
:local .text-card-markdown hr {
margin: 0;
}
:local .single-row {
margin: 0;
}
......@@ -228,7 +228,10 @@
:hard-line-break
"\n"
(:heading)
:horizontal-line
"\n───────────────────\n"
:heading
(str "*" joined-content "*\n")
:bold
......
......@@ -40,6 +40,10 @@
(is (= "foo\nbar" (mrkdwn "foo \nbar")))
(is (= "foo\nbar" (mrkdwn "foo\\\nbar"))))
(testing "Horizontal lines are created using box drawing characters"
(is (= "───────────────────" (mrkdwn "----")))
(is (= "text\n\n───────────────────\ntext" (mrkdwn "text\n\n----\ntext"))))
(testing "Code blocks are preserved"
(is (= "`code`" (mrkdwn "`code`")))
(is (= "```\ncode\nblock```" (mrkdwn " code\n block")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment