Debian Codegraph @

vendor/wikimedia/parsoid/src/Html2Wt/ConstrainedText/README.md

raw
1 Chunk-based serialization support.
2
3 Keeping wikitext output in `ConstrainedText` chunks allows us to
4 preserve meta-information about boundary conditions at the edges
5 of chunks. This allows us to more easily add `<nowiki>` and other
6 fixups where needed to prevent misparsing caused by juxtaposition.
7
8 For example, the chunk corresponding to a magic link can "remember"
9 that it needs to have word boundaries on either side. If these aren't
10 present (after the chunks on either side have been serialized) then
11 we can add <nowiki> escapes at the proper places.