The latest version of the PHP CommonMark library (1.3.0+) adds in quite a few extensions since it needs to support GFM out-of-the-box. There's also a couple 3rd party extensions that support for would be nice.
- #3131214: CommonMark Extension: Autolink
- #3131209: CommonMark Extension: Disallowed Raw HTML
- #3131217: CommonMark Extension: External Links
- #3131218: CommonMark Extension: Heading Permalinks
- #3131135: CommonMark Extension: Smart Punctuation
- #3131219: CommonMark Extension: Strikethrough
- #3131220: CommonMark Extension: Table of Contents
- Tables (Done)
- Task Lists (Done)
- #3131224: CommonMark 3rd-party Extension: Footnotes
Comments
Comment #2
mikejw commentedComment #3
markhalliwellExtensions can also have options: https://commonmark.thephpleague.com/1.4/extensions/external-links/#confi...
So, while they're not really working right now (still building that out), adding each respective extension's options to the plugin itself will help in the long run.
Also, it probably wouldn't hurt to replace the custom extensions (at link/hash link/link render) I built with the now official/supported extensions bundled with the library now (you can see how these settings were added there).
Comment #4
mikejw commentedYeah I have started putting in the options and building the settings forms. Good idea re the custom extensions - I'll clean those up too.
Comment #5
mikejw commented...also probably going to have to allow options per page in the case of table of contents I am thinking. Maybe put that in later.
Comment #6
mikejw commentedOk, new plan as discussed with @markcarver - going to create separate issues for each extension, starting with smart punctuation. After that one is done will continue with the rest. Postponing this one for now, will remove later.
Comment #7
markhalliwellThis can remain open as the meta parent issue.
I've gone ahead and created the rest of the child issues.
Comment #8
markhalliwell