Skip to content

Commit 41c2b66

Browse files
committed
fix markdown hr colors.
1 parent 0328315 commit 41c2b66

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

Diff for: assets/sass/_markdown.scss

+12-6
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@
8282
}
8383
}
8484

85-
.box {// background of box is equal of $code-color.
86-
.markdown-body {
87-
pre, code {
88-
background-color: var(--code-color-light) !important;
89-
}
90-
}
85+
// Fix colors,
86+
// - background of box is equal of $code-color.
87+
.box {
88+
.markdown-body {
89+
pre, code {
90+
background-color: var(--code-color-light) !important;
91+
}
92+
93+
hr {
94+
background-color: var(--code-color-light) !important;
95+
}
96+
}
9197
}
9298

Diff for: i18n/i18n.toml

+16
Original file line numberDiff line numberDiff line change
@@ -2382,6 +2382,14 @@ Code block:
23822382
\\```
23832383
texte
23842384
\\```
2385+
2386+
Horizontal line:
2387+
2388+
---
2389+
2390+
```
2391+
---
2392+
```
23852393
"""
23862394
fr="""
23872395
Titre : `### Texte`
@@ -2420,6 +2428,14 @@ Bloc de code :
24202428
\\```
24212429
texte
24222430
\\```
2431+
2432+
Ligne horizontale:
2433+
2434+
---
2435+
2436+
```
2437+
---
2438+
```
24232439
"""
24242440

24252441
[welcomeLetter]

Diff for: src/Markdown.elm

+3-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ frac6Renderer style recursive =
184184
)
185185
|> Markdown.Html.withAttribute "class"
186186

187-
-- @DEBUG p/inline issue
188-
--https://github.com/dillonkearns/elm-markdown/issues/50
187+
-- @DEBUG p/inline issue, see https://github.com/dillonkearns/elm-markdown/issues/50
188+
-- Add Tag: primary, success, info, link, warning, danger.
189+
-- Add tag: sub, sup, tiny, small, medium, large, huge
189190
--
190191
, Markdown.Html.tag "u"
191192
(\cls content ->

0 commit comments

Comments
 (0)