| #
3a5ba395
|
| 08-Jul-2026 |
Andreas Gohr <gohr@cosmocode.de> |
fix(parser): treat quotes next to bold/underline markup as smart quotes
With typography=2 a single-quoted phrase wrapped in strong or underline markup (**'x'** / __'x'__) rendered apostrophes instea
fix(parser): treat quotes next to bold/underline markup as smart quotes
With typography=2 a single-quoted phrase wrapped in strong or underline markup (**'x'** / __'x'__) rendered apostrophes instead of opening and closing quotes: the lexer matches against the full subject at a byte offset, so the singlequoteopening lookbehind sees the consumed * or _ delimiter and fails, letting apostrophe win. Add * and _ to the quote boundary set, as / (emphasis) already was, so the surrounding markup is recognised as a word boundary.
show more ...
|
| #
71096e46
|
| 18-Apr-2026 |
Andreas Gohr <andi@splitbrain.org> |
move handler methods into ParserMode classes and rename Handler
Each ParserMode class now implements handle() from ModeInterface, containing the token handling logic that previously lived as individ
move handler methods into ParserMode classes and rename Handler
Each ParserMode class now implements handle() from ModeInterface, containing the token handling logic that previously lived as individual methods on Doku_Handler.
The Handler class (formerly Doku_Handler) is the single dispatch point: Lexer passes tokens to Handler::handleToken() which routes to mode objects, plugins, or returns false. The Lexer only tokenizes and resolves mapHandler aliases.
Key changes: - Add handle() to ModeInterface, implemented by all mode classes - Move Doku_Handler to dokuwiki\Parsing\Handler namespace - File extends Code (shared parsing via $type property) - Quotes uses mapHandler() + Handler::getModeName() for sub-modes - Media::parseMedia() replaces Doku_Handler_Parse_Media() - Code::parseHighlightOptions() replaces parse_highlight_options() - Per-parse state (footnote, doublequote) stays on Handler - Deprecated wrappers kept for base/header/internallink/media - Class alias and rector rules added for backward compatibility
show more ...
|