Skip to content

Commit

Permalink
Merge pull request #925 from WolframResearch/bugfix/bad-header-markdo…
Browse files Browse the repository at this point in the history
…wn-conversion

Bugfix: Fix bad markdown serialization of header cells containing formatting
  • Loading branch information
rhennigan authored Nov 15, 2024
2 parents 3260efb + cef3a70 commit 35db7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Chatbook/Serialization.wl
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ fasterCellToString0[ (Cell|StyleBox)[ a_, $$subsubsubsectionStyle, ___ ] ] := "#
fasterCellToString0[ (Cell|StyleBox)[ a_, $$subsubsubsubsectionStyle, ___ ] ] := "###### "<>fasterCellToString0 @ a;

fasterCellToString0[ Cell[ BoxData @ PaneBox[ StyleBox[ box_, style_String, ___ ], ___ ], "InlineSection", ___ ] ] :=
Block[ { $showStringCharacters = False },
Block[ { $showStringCharacters = False, $escapeMarkdown = False },
StringJoin[
"\n",
fasterCellToString0 @ Cell[ fasterCellToString0 @ box, style ],
Expand Down

0 comments on commit 35db7b3

Please sign in to comment.