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:
Micah Hahn 2023-05-01 16:12:01 -05:00 committed by GitHub
commit 03ed51617e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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