mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-04 07:02:12 +03:00
Merge pull request #1375 from NoRedInk/phx-709-fix-extra-borders-in-emphasis-with-markdown
[PHX-709] Borders are not getting blended when markdown is directly underneath emphasis
This commit is contained in:
commit
03ed51617e
@ -210,6 +210,13 @@ example =
|
||||
, Block.labelId editorsNoteId
|
||||
, Block.labelPosition (Dict.get editorsNoteId offsets)
|
||||
]
|
||||
, Block.view
|
||||
[ Block.plaintext " "
|
||||
]
|
||||
, Block.view
|
||||
[ Block.content [ Block.italic (Block.phrase "Emphasized Italics.") ]
|
||||
, Block.emphasize
|
||||
]
|
||||
]
|
||||
, p
|
||||
[ css
|
||||
|
@ -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