WIP - pelican-import: Support the SyntaxHighlighter plugin.#3607
Draft
stuaxo wants to merge 1 commit into
Draft
Conversation
stuaxo
force-pushed
the
feat/wp-syntax-highlighter-support
branch
from
June 11, 2026 17:03
1a1a453 to
61fede2
Compare
stuaxo
marked this pull request as draft
June 11, 2026 17:12
This was the default for about 10 years.
stuaxo
force-pushed
the
feat/wp-syntax-highlighter-support
branch
from
June 12, 2026 13:58
61fede2 to
58a7336
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support the SyntaxHighlighter plugin.
This was the default syntax highlighter in wordpress for about 10 years.
Currently only supports markdown output, this looks for output like:
``` brush: python
And coverts it to:
```python
For my personal blog this is enough to have sane output for all the included source code from the site.
Currently only supports markdown at the moment - I'm not quite sure the best way for this to support .rst as well (not sure what these look like going through .rst)
Pull Request Checklist