-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom extras #519
Custom extras #519
Commits on Mar 13, 2023
-
Custom extras initial proof of concept.
The way this works is by creating subclasses of the `Extra` class. These subclasses will have an order and a name. The name is the same one specified in the `extras` list/dict given to the Markdown init function. The order will be at which point the function will be executed. This is done by attaching the extra to a "Stage", a distinct step in the markdown process (eg: forming paragraphs, processing links... etc). You can set the extra to run before or after the stage. At the moment, extras are automatically registered, activated and executed by the Markdown class. TODO: * More elegant way to register and init extras * Optimise `Stage.mark` * Convert more extras to new class format
Configuration menu - View commit details
-
Copy full SHA for 07789a2 - Browse repository at this point
Copy the full SHA 07789a2View commit details
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for aad9e33 - Browse repository at this point
Copy the full SHA aad9e33View commit details
Commits on Apr 23, 2023
-
Merge branch 'master' into custom-extras
Stay up to date with master
Configuration menu - View commit details
-
Copy full SHA for d3efe1e - Browse repository at this point
Copy the full SHA d3efe1eView commit details
Commits on May 23, 2023
-
Convert
femced-code-blocks
extra to newExtra
format.Also converted `mermaid` extra as part of this process. As a plus, you no longer need fenced-code-blocks activated to use mermaid. Also added the ability for extras to be triggered before or after another extra
Configuration menu - View commit details
-
Copy full SHA for 212131b - Browse repository at this point
Copy the full SHA 212131bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26ae9a5 - Browse repository at this point
Copy the full SHA 26ae9a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4b3d66 - Browse repository at this point
Copy the full SHA f4b3d66View commit details -
Convert tables and wiki-tables extras to new format.
All block extras have now been converted
Configuration menu - View commit details
-
Copy full SHA for 283fcdf - Browse repository at this point
Copy the full SHA 283fcdfView commit details
Commits on May 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cb1fd28 - Browse repository at this point
Copy the full SHA cb1fd28View commit details -
Configuration menu - View commit details
-
Copy full SHA for e460b2e - Browse repository at this point
Copy the full SHA e460b2eView commit details -
Convert span extras to new format.
Still TODO is things like `footnotes` extra. Also need to think of a system for extras to replace parts of the standard syntax
Configuration menu - View commit details
-
Copy full SHA for ad7a3ff - Browse repository at this point
Copy the full SHA ad7a3ffView commit details
Commits on Jul 2, 2023
-
Merge branch 'master' into custom-extras.
Merge master to pull in trentm#514 for conversion to new Extra format
Configuration menu - View commit details
-
Copy full SHA for 8a3fdcf - Browse repository at this point
Copy the full SHA 8a3fdcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2d8baa - Browse repository at this point
Copy the full SHA a2d8baaView commit details -
Fix failing Python 3.6 tests due to missing
re.Match
class.Also fix tests not running on Windows
Configuration menu - View commit details
-
Copy full SHA for 262d7ff - Browse repository at this point
Copy the full SHA 262d7ffView commit details -
At time of commit, Python 3.5 is 2 years 9 months EOL.
Configuration menu - View commit details
-
Copy full SHA for cb05bdc - Browse repository at this point
Copy the full SHA cb05bdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 666ebef - Browse repository at this point
Copy the full SHA 666ebefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb13b4 - Browse repository at this point
Copy the full SHA 8eb13b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5478960 - Browse repository at this point
Copy the full SHA 5478960View commit details
Commits on Jul 23, 2023
-
Merge branch 'master' of https://github.com/trentm/python-markdown2 i…
…nto custom-extras Resolve merge conflicts for PR
Configuration menu - View commit details
-
Copy full SHA for 1682d6f - Browse repository at this point
Copy the full SHA 1682d6fView commit details
Commits on Aug 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7751098 - Browse repository at this point
Copy the full SHA 7751098View commit details
Commits on Aug 19, 2023
-
Add
order
attribute toMarkdown
class.Allows extras to check exactly when they've been triggered - before or after certain stages
Configuration menu - View commit details
-
Copy full SHA for 6233ea1 - Browse repository at this point
Copy the full SHA 6233ea1View commit details -
Fix extra options being replaced if falsey.
Remove unneeded type hints
Configuration menu - View commit details
-
Copy full SHA for a63343d - Browse repository at this point
Copy the full SHA a63343dView commit details -
Convert
code-friendly
andmiddle-word-em
extras to new format.Ended up implementing a `ItalicsAndBoldProcessor` ABC extra class for both to piggy-back off of. Works by hashing text that we don't want processed and then doing nothing with the other text. Hashed text is then replaced after I&B has run
Configuration menu - View commit details
-
Copy full SHA for fcaadfe - Browse repository at this point
Copy the full SHA fcaadfeView commit details
Commits on Sep 24, 2023
-
Merge branch 'master' into custom-extras
Resolve merge conflicts for PR
Configuration menu - View commit details
-
Copy full SHA for eaa4544 - Browse repository at this point
Copy the full SHA eaa4544View commit details
Commits on Nov 7, 2023
-
Merge branch 'master' into custom-extras
Resolve merge conflicts for PR
Configuration menu - View commit details
-
Copy full SHA for bf2bec3 - Browse repository at this point
Copy the full SHA bf2bec3View commit details
Commits on Dec 1, 2023
-
Merge branch 'master' into custom-extras
Merge master to resolve PR conflicts
Configuration menu - View commit details
-
Copy full SHA for 4353751 - Browse repository at this point
Copy the full SHA 4353751View commit details
Commits on Dec 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fc33019 - Browse repository at this point
Copy the full SHA fc33019View commit details
Commits on Jan 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4373eb3 - Browse repository at this point
Copy the full SHA 4373eb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c269ccf - Browse repository at this point
Copy the full SHA c269ccfView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc34905 - Browse repository at this point
Copy the full SHA cc34905View commit details
Commits on Jan 6, 2024
-
Merge branch 'master' into custom-extras
Merge recent changes to `breaks` functionality
Configuration menu - View commit details
-
Copy full SHA for a9fb886 - Browse repository at this point
Copy the full SHA a9fb886View commit details
Commits on Jan 27, 2024
-
Refactor extras ordering system to use lists rather than number based…
… ordering Lists let us have a theoreticaly infinite number of extras registered, with no overflowing into the next stage
Configuration menu - View commit details
-
Copy full SHA for 123b6a9 - Browse repository at this point
Copy the full SHA 123b6a9View commit details -
Refactor the
Stage
class to be a proper enum, move exec order logic…… to `Extra` ABC
Configuration menu - View commit details
-
Copy full SHA for 66d7e4f - Browse repository at this point
Copy the full SHA 66d7e4fView commit details
Commits on Jan 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b41ca8f - Browse repository at this point
Copy the full SHA b41ca8fView commit details