Skip to content

Commit

Permalink
Fix reporting of parse errors in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
dougalm committed Jan 11, 2024
1 parent 87f7b71 commit 25e2e38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/RenderHtml.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ renderSourceBlock n b = RenderedSourceBlock
, rsbText = T.unpack $ sbText b
, rsbHtml = renderHtml case sbContents b of
Misc (ProseBlock s) -> cdiv "prose-block" $ mdToHtml s
UnParseable _ e -> do
cdiv "code-block" (toHtml $ sbText b)
cdiv "err-result" (toHtml e)
_ -> renderSpans n (sbLexemeInfo b) (sbText b)
}

Expand Down

0 comments on commit 25e2e38

Please sign in to comment.