Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 25b40dc

Browse files
author
Matthew Williams
committed
Fix bolditalics bug in links
1 parent 4397814 commit 25b40dc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

claat/parser/md/parse.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,10 @@ func link(ds *docState) types.Node {
828828
// Check outside styles
829829
outsideBold := isBold(ds.cur.Parent)
830830
outsideItalic := isItalic(ds.cur.Parent)
831+
if isBoldAndItalic(ds.cur.Parent) {
832+
outsideBold = true
833+
outsideItalic = true
834+
}
831835
// Apply outside styles to inside parsed (text) nodes
832836
for _, node := range parsedChildNodes {
833837
if textNode, ok := node.(*types.TextNode); ok {

0 commit comments

Comments
 (0)