mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-17 10:17:09 +03:00
Apply the styles to the markdown wrapper node, not the children
This commit is contained in:
parent
95a0dd0e46
commit
8e7f053f07
@ -278,13 +278,13 @@ renderContent content_ styles =
|
|||||||
tag =
|
tag =
|
||||||
case markdown of
|
case markdown of
|
||||||
Bold ->
|
Bold ->
|
||||||
strong []
|
strong [ css styles ]
|
||||||
|
|
||||||
Italic ->
|
Italic ->
|
||||||
em []
|
em [ css styles ]
|
||||||
in
|
in
|
||||||
contents
|
contents
|
||||||
|> List.map (\c -> renderContent c styles)
|
|> List.map (\c -> renderContent c [])
|
||||||
|> tag
|
|> tag
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user