Add legacy Wikidot [[note]] block parser support - #128
Open
wasd243 wants to merge 6 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #128 +/- ##
==========================================
+ Coverage 71.01% 71.23% +0.21%
==========================================
Files 220 221 +1
Lines 6213 6260 +47
==========================================
+ Hits 4412 4459 +47
Misses 1801 1801
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
emmiegit
reviewed
Jul 26, 2026
Co-authored-by: Emmie <emmie.maeda@gmail.com>
emmiegit
approved these changes
Jul 27, 2026
Contributor
Author
Member
emmiegit
approved these changes
Aug 1, 2026
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.


What's changed
This PR adds legacy Wikidot
[[note]]block grammar parsing support.Example:
Block Rules
Based on the Wikidot DOM output of
[[note]], the legacy parser renders it into HTML like:The
[[note]]block parser now parses it into:The
[[note]]block does not have special attributes like the[[collapsible]]block (showandhide).Also it cannot be placed inline like:
It falls back to raw text. (The element that looks like an HR in the screenshot is actually an empty

div class="wiki-note"rendering)The empty
[[note]]is allowed like:which will generate an empty container like:
{ "element": "container", "data": { "type": "note", "attributes": {}, "elements": [] } }CSS
This PR only adds parser support. The generated HTML class is
wj-note.If the frontend already has an existing style for this block, please let me know if any changes are needed.