unisonweb / codebase-ui

Unison Codebase UI
https://share.unison-lang.org
MIT License
46 stars 7 forks source link

Numbered lists in ui show "Sos" errors #229

Closed rlmark closed 3 years ago

rlmark commented 3 years ago

Docs seem to have trouble rendering numbered lists.

testDoc = {{

# Test Num list 

1. A
2. B 
3. C 

}}

is valid in the UCM, but I've attached a screenshot showing what it looks like in the UI. (Also I'm running the UI which ships with the recent m2h release, so it's possible more features have been added since then, in which case, disregard!)

Screen Shot 2021-09-24 at 12 42 32 PM

hojberg commented 3 years ago

That's super strange. I don't think I print out that emoji anywhere hmmm.

It kinda looks like a debug output or something

pchiusano commented 3 years ago

Pretty sure that's a bug in the backend - from a missing pattern match.

Surprised we haven't noticed it before, but it should be a quick fix in Unison.Server.Doc.

rlmark commented 3 years ago

Oh weird! I tried displaying the doc in the ucm and it went fine! I'll close this!