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 =
|
||||
case markdown of
|
||||
Bold ->
|
||||
strong []
|
||||
strong [ css styles ]
|
||||
|
||||
Italic ->
|
||||
em []
|
||||
em [ css styles ]
|
||||
in
|
||||
contents
|
||||
|> List.map (\c -> renderContent c styles)
|
||||
|> List.map (\c -> renderContent c [])
|
||||
|> tag
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user