mataroa icon indicating copy to clipboard operation
mataroa copied to clipboard

Strikethrough text?

Open pratul opened this issue 1 year ago • 5 comments

I tried the usual markdown syntax of surrounding text with ~~ but it doesn't seem to work. Does mataroa not support strikethrough formatted text?

pratul avatar Mar 01 '23 14:03 pratul

Hey @pratul,

The markdown library we use (Python-Markdown) supports John Gruber’s markdown spec, which does not define strikethrough text.

We also use some extensions (fenced_code, tables, footnotes, toc) that are outside the spec but these are undocumented (on mataroa) and they might change.

I’ve found an extension for strikethrough text (from pymdownx / source) but I'm thinking to change the markdown library altogether to something else. Either mistletoe or mistune.

No specific timeline for this, though :)

sirodoht avatar Mar 01 '23 15:03 sirodoht

I'm interested into using mistune as the markdown library. I really like its Directive approach! Although we would need to re-implement the syntax highlight theme.

@sirodoht Are you still interested on this?

ratsclub avatar Jul 25 '24 16:07 ratsclub

Sure, yes! Feel free to work on it :)

sirodoht avatar Jul 25 '24 23:07 sirodoht

Okay, from my investigation mistletoe would require use to write a bunch of extensions... I don't think this is productive given that we already have most of them here.

On the other side, mistune would only need a new footnotes plugin as it doesn't add a <hr/> tag. What do you think? Should we add the strikethrough extension to our current markdown library or migrate to mistune and write the footnotes (basically copying and pasting the official one, but adding a <hr/> tag)?

ratsclub avatar Jul 30 '24 14:07 ratsclub

I like mistune more but haven't done a deep look into it, so cannot say much.

sirodoht avatar Jul 30 '24 21:07 sirodoht