aliva / gedit-markdownpreview

GNU General Public License v2.0
22 stars 3 forks source link

strike through #10

Closed joshp23 closed 5 years ago

joshp23 commented 5 years ago

Strike through is not rendering with Gedit 3.28.1 and latest from Master.

aliva commented 5 years ago

It seems that python-markdown doesn't support strike through which means we need to use a 3rd party extension, link

we can say if pymdown-extensions is already installed, then load strike through (as an optional thing)

Or simply copy related files into this plugin and automatically load them.

What do you think?

joshp23 commented 5 years ago

sreikerhrough is common enough, so autoloading seems the best way, IMO.

joshp23 commented 5 years ago

this looks like a winner as well :)

joshp23 commented 5 years ago

So I went with your original suggestion of checking for the installed pymdown-extensions package, and then loading the extensions for strike through and task lists. I also loaded the extra extension in both cases rather than loading individual extensions that are contained therein.

I updated the readme to reflect supported syntax with links.