puzzmo-com / xd-crossword-tools

A single dependency for using the xd file format for crosswords: convertors (puz -> xd, xd -> json, json -> xd, json -> puz) and editor tooling for xd
MIT License
36 stars 4 forks source link

Add support for markdown clues #12

Closed orta closed 1 year ago

orta commented 1 year ago

xd says this:

A51. {/Italic/}, {*bold*}, {_underscore_}, or {-strike-thru-} ~ MARKUP

But we think we want real markdown in here:

A51. /Italic/, *bold*, _underscore_, or -strike-thru- and [link](https://url.com/) ~ MARKUP

We should look to see if any of these chars are in the clue, and if so provide an optional array of the flattened clue text:

[["italic", "Italic"], ["bold", "bold"] ...]