Skip to content

Commit

Permalink
🐛 Fix protyle md rendering NPE https://ld246.com/article/1727572345197
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 29, 2024
1 parent 0c0a843 commit 635bcd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions render/protyle_export_md_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ func (r *ProtyleExportMdRenderer) renderMdMarker(node *ast.Node, entering bool)
}
types = tmp

if 1 > len(types) {
return
}

typ := types[0]
if "a" == typ || "inline-memo" == typ || "block-ref" == typ || "file-annotation-ref" == typ || "inline-math" == typ {
types := types[1:]
Expand Down

0 comments on commit 635bcd7

Please sign in to comment.