172b2703bSAndreas Gohr<?php 272b2703bSAndreas Gohr 372b2703bSAndreas Gohr/** 4451f2842SAndreas Gohr * GFM spec examples that GfmSpecTest should skip, keyed by example number (as numbered in spec.txt). 572b2703bSAndreas Gohr * 6451f2842SAndreas Gohr * All entries skipped here are things that are explicitly not supported by DokuWiki's Markdown mode, for reasons 7451f2842SAndreas Gohr * documented in the skip reason (mostly limitations of the single-pass regex lexer). 872b2703bSAndreas Gohr * 9451f2842SAndreas Gohr * Most of the skipped examples are edge cases that are rarely used in practice. 10451f2842SAndreas Gohr * 11451f2842SAndreas Gohr * Entries are ordered by example number, when the underlying spec.txt is updated, its example numbers may shift, 12451f2842SAndreas Gohr * so the keys here may need to be updated to match the new example numbers. 1372b2703bSAndreas Gohr */ 1472b2703bSAndreas Gohr 1572b2703bSAndreas Gohrreturn [ 16451f2842SAndreas Gohr 17451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 18451f2842SAndreas Gohr // Tabs (§2.2) 19b37c6ef7SAndreas Gohr // 20451f2842SAndreas Gohr // DokuWiki's tab handling is binary: a leading tab (matching \n\t directly after the newline) is the indented-code 21451f2842SAndreas Gohr // trigger, otherwise tabs are ordinary characters. 22b414dba2SAndreas Gohr // 23451f2842SAndreas Gohr // CommonMark instead advances each tab to the next 4-column stop and uses the resulting column count to drive 24451f2842SAndreas Gohr // list-continuation, list-nesting, blockquote-interior, and 4-column indented-code decisions. The column arithmetic 25451f2842SAndreas Gohr // is what we don't support. 26451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 27451f2842SAndreas Gohr 28451f2842SAndreas Gohr 2 => 'Tabs (§2.2): 2 spaces then tab as code trigger - no column arithmetic to advance tab to column 4', 29451f2842SAndreas Gohr 4 => 'Tabs (§2.2): tab as 4-column lazy continuation in list - list-interior column arithmetic not implemented', 30451f2842SAndreas Gohr 5 => 'Tabs (§2.2): two tabs (8 columns) inside list item - list-interior column arithmetic not implemented', 31451f2842SAndreas Gohr 6 => 'Tabs (§2.2): tabs after blockquote marker for code - quote-interior column arithmetic not implemented', 32451f2842SAndreas Gohr 7 => 'Tabs (§2.2): tabs after list marker for indented code - list-interior column arithmetic not implemented', 33451f2842SAndreas Gohr 9 => 'Tabs (§2.2): tab as 4-column indent for list nesting - leading tab is code trigger, never a nesting indent', 34451f2842SAndreas Gohr 11 => 'Tabs (§2.2): thematic break with tab separators - strict bare-run HR rejects internal whitespace', 35451f2842SAndreas Gohr 36451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 37451f2842SAndreas Gohr // Thematic breaks aka. HRs (§4.1) 38b414dba2SAndreas Gohr // 39451f2842SAndreas Gohr // We only support horizontal rules siting at column 0 with no leading, trailing, or internal whitespace. 40451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 41b414dba2SAndreas Gohr 42451f2842SAndreas Gohr 17 => 'Thematic breaks (§4.1): HR with 0-3 spaces of leading indent - column-0-only opener required', 43451f2842SAndreas Gohr 19 => 'Thematic breaks (§4.1): HR after paragraph with 4-space indent - Preformatted triggers regardless of state', 44451f2842SAndreas Gohr 21 => 'Thematic breaks (§4.1): HR with spaces between delimiters (- - -) - no whitespace allowed', 45451f2842SAndreas Gohr 22 => 'Thematic breaks (§4.1): HR with spaces between delimiters (** * **) - no whitespace allowed', 46451f2842SAndreas Gohr 23 => 'Thematic breaks (§4.1): HR with spaces between delimiters (- -) - no whitespace allowed', 47451f2842SAndreas Gohr 24 => 'Thematic breaks (§4.1): HR with internal spaces and trailing whitespace - no whitespace allowed', 48451f2842SAndreas Gohr 29 => 'Thematic breaks (§4.1): Setext underline disambiguation - Setext headers not supported', 49451f2842SAndreas Gohr 30 => 'Thematic breaks (§4.1): HR between list items (* * *) - no whitespace allowed', 50451f2842SAndreas Gohr 31 => 'Thematic breaks (§4.1): HR shape inside list item - HRs not supported inside lists', 51451f2842SAndreas Gohr 52451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 53451f2842SAndreas Gohr // ATX headings (§4.2) 54506762f4SAndreas Gohr // 55451f2842SAndreas Gohr // We only support headers sitting at column 0 with no leading whitespace. 56451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 57451f2842SAndreas Gohr 58451f2842SAndreas Gohr 38 => 'ATX headings (§4.2): heading with 0-3 spaces of leading indent - column-0-only opener required', 59451f2842SAndreas Gohr 40 => 'ATX headings (§4.2): 4-space indent after paragraph as lazy text - no paragraph-open state in lexer', 60451f2842SAndreas Gohr 41 => 'ATX headings (§4.2): heading with 2-space leading indent - column-0-only opener required', 61451f2842SAndreas Gohr 49 => 'ATX headings (§4.2): empty heading - XHTML renderer skips blank headings via blank() guard', 62451f2842SAndreas Gohr 63451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 64*1beb7450SAndreas Gohr // ATX headings - inline formatting in heading content (§4.2) 65*1beb7450SAndreas Gohr // 66*1beb7450SAndreas Gohr // Heading content is currently treated as plain text - inline modes (emphasis, code spans, links, backslash 67*1beb7450SAndreas Gohr // escapes, etc.) are not processed inside heading text. Implementing this requires reworking how the existing 68*1beb7450SAndreas Gohr // header instruction and downstream renderers handle heading content, which is deferred for now. 69*1beb7450SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 70*1beb7450SAndreas Gohr 71*1beb7450SAndreas Gohr 36 => 'ATX headings (§4.2): inline emphasis and backslash escapes in heading - inline modes not run in headings', 72*1beb7450SAndreas Gohr 46 => 'ATX headings (§4.2): backslash-escaped # in heading content - inline modes not run in headings', 73*1beb7450SAndreas Gohr 74*1beb7450SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 75451f2842SAndreas Gohr // Setext (§4.3) 76506762f4SAndreas Gohr // 77451f2842SAndreas Gohr // Setext headings are not supported. They are hard to pass and nobody uses them anymore. 78451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 79506762f4SAndreas Gohr 80451f2842SAndreas Gohr 50 => 'Setext (§4.3): heading with emphasis and underline - Setext headings not supported', 81451f2842SAndreas Gohr 51 => 'Setext (§4.3): heading with multi-line content - Setext headings not supported', 82451f2842SAndreas Gohr 52 => 'Setext (§4.3): heading with indented multi-line content - Setext headings not supported', 83451f2842SAndreas Gohr 53 => 'Setext (§4.3): heading with any-length underline - Setext headings not supported', 84451f2842SAndreas Gohr 54 => 'Setext (§4.3): heading with 3-space-indented content/underline - Setext headings not supported', 85451f2842SAndreas Gohr 55 => 'Setext (§4.3): 4-space-indented content forms code then HR - Setext headings not supported', 86451f2842SAndreas Gohr 56 => 'Setext (§4.3): underline indented up to 3 spaces with trailing - Setext headings not supported', 87451f2842SAndreas Gohr 57 => 'Setext (§4.3): 4-space-indented underline (paragraph wins) - Setext headings not supported', 88451f2842SAndreas Gohr 58 => 'Setext (§4.3): underline with internal spaces (= = / --- -) - Setext and internal-space HR not supported', 89451f2842SAndreas Gohr 59 => 'Setext (§4.3): trailing spaces in content do not break line - Setext headings not supported', 90451f2842SAndreas Gohr 60 => 'Setext (§4.3): trailing backslash in content - Setext headings not supported', 91451f2842SAndreas Gohr 61 => 'Setext (§4.3): block-structure precedence over inline - Setext headings not supported', 92451f2842SAndreas Gohr 63 => 'Setext (§4.3): underline cannot be lazy continuation in quote - Setext headings not supported', 93451f2842SAndreas Gohr 65 => 'Setext (§4.3): preceding paragraph becomes heading content - Setext headings not supported', 94451f2842SAndreas Gohr 66 => 'Setext (§4.3): no blank line required before/after heading - Setext headings not supported', 95451f2842SAndreas Gohr 70 => 'Setext (§4.3): 4-space-indented content forms code then --- HR - Setext headings not supported', 96451f2842SAndreas Gohr 72 => 'Setext (§4.3): heading with backslash-escaped marker - Setext headings not supported', 97451f2842SAndreas Gohr 73 => 'Setext (§4.3): paragraph + heading + paragraph blank-separated - Setext headings not supported', 98451f2842SAndreas Gohr 75 => 'Setext (§4.3): * * * boundary should be HR not underline - Setext and internal-space HR not supported', 99451f2842SAndreas Gohr 76 => 'Setext (§4.3): backslash-escaped underline keeps as paragraph - Setext headings not supported', 100b1c59bedSAndreas Gohr 101451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 102451f2842SAndreas Gohr // Indented code (§4.4) 103685560ebSAndreas Gohr // 104451f2842SAndreas Gohr // DokuWiki's single-pass lexer cannot carry paragraph-open state across modes, so Preformatted triggers on every \n 105451f2842SAndreas Gohr // followed by 4-space indent and exits on every blank line. Two CommonMark rules consequently cannot be expressed: 106685560ebSAndreas Gohr // 107451f2842SAndreas Gohr // - The 4-space indent must NOT open a code block on a paragraph-continuation line — GFM treats it as lazy 108451f2842SAndreas Gohr // paragraph text. There is no paragraph-open flag to consult. 109451f2842SAndreas Gohr // - An indented code block MAY span blank lines as long as the next non-blank line is still 4-space indented. 110451f2842SAndreas Gohr // DokuWiki's exit-on-any-blank-line behavior splits the block. 111309a0852SAndreas Gohr // 112451f2842SAndreas Gohr // List-interior indented code (79, 80) additionally needs the column arithmetic that the §2.2 tabs family already 113451f2842SAndreas Gohr // documents as out of scope. 114451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 115451f2842SAndreas Gohr 116451f2842SAndreas Gohr 79 => 'Indented code (§4.4): inside list item - list-interior column arithmetic plus paragraph trigger', 117451f2842SAndreas Gohr 80 => 'Indented code (§4.4): after content in list item - list-interior column arithmetic plus paragraph trigger', 118451f2842SAndreas Gohr 81 => 'Indented code (§4.4): code block spanning blank lines - fully blank lines exit the block', 119451f2842SAndreas Gohr 83 => 'Indented code (§4.4): 4-space indent on paragraph continuation - no paragraph-open state in lexer', 120451f2842SAndreas Gohr 85 => 'Indented code (§4.4): 4-space indent mid-paragraph variant - no paragraph-open state in lexer', 121451f2842SAndreas Gohr 122451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 123451f2842SAndreas Gohr // Fenced code (§4.5) 124309a0852SAndreas Gohr // 125451f2842SAndreas Gohr // Our parser does not support backreferences in regexes, so we cannot enforce the fence-length pairing rules that 126451f2842SAndreas Gohr // CommonMark requires for closing a fenced code block. 127451f2842SAndreas Gohr // 128451f2842SAndreas Gohr // We require fence runs to sit at column 0, no leading spaces allowed. 129451f2842SAndreas Gohr // 130451f2842SAndreas Gohr // Unclosed fences stay literal because the single-pass lexer has no notion of container boundaries to close at, 131451f2842SAndreas Gohr // unlike CommonMark's two-pass block parser. 132451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 133309a0852SAndreas Gohr 134451f2842SAndreas Gohr 94 => 'Fenced code (§4.5): closer must be >= opener length - no regex backreferences, any 3+ run closes', 135451f2842SAndreas Gohr 95 => 'Fenced code (§4.5): closer length pairing for tilde fence - no regex backreferences for length pairing', 136451f2842SAndreas Gohr 96 => 'Fenced code (§4.5): unclosed fence consuming to EOF - no container boundaries in lexer', 137451f2842SAndreas Gohr 97 => 'Fenced code (§4.5): unclosed fence with intervening short run - no container boundaries in lexer', 138451f2842SAndreas Gohr 98 => 'Fenced code (§4.5): fence inside blockquote closes at quote end - no container boundaries in lexer', 139451f2842SAndreas Gohr 101 => 'Fenced code (§4.5): opener indented 1 space - column-0-only policy, indent tolerance out of scope', 140451f2842SAndreas Gohr 102 => 'Fenced code (§4.5): opener indented 2 spaces - column-0-only policy', 141451f2842SAndreas Gohr 103 => 'Fenced code (§4.5): opener indented 3 spaces - column-0-only policy', 142451f2842SAndreas Gohr 105 => 'Fenced code (§4.5): closer indented 2 spaces - column-0-only policy', 143451f2842SAndreas Gohr 106 => 'Fenced code (§4.5): indented opener with less-indented closer - column-0-only policy', 144451f2842SAndreas Gohr 107 => 'Fenced code (§4.5): 4-space-indented closer - column-0-only policy, no valid closer, fence stays literal', 145451f2842SAndreas Gohr 108 => 'Fenced code (§4.5): three-backtick fallback to inline span - backtick spans with n>=3 not implemented', 146451f2842SAndreas Gohr 109 => 'Fenced code (§4.5): malformed closer with space-broken run - no valid closer, fence stays literal', 147451f2842SAndreas Gohr 111 => 'Fenced code (§4.5): fence interrupting Setext heading - Setext headings not supported', 148451f2842SAndreas Gohr 115 => 'Fenced code (§4.5): single-line ``` x ``` - 3+ backtick inline code spans are not implemented', 14974031e46SAndreas Gohr 150451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 151451f2842SAndreas Gohr // HTML blocks (§4.6) 152451f2842SAndreas Gohr // 153451f2842SAndreas Gohr // Raw HTML pass-through is not supported. DokuWiki therefore renders it as escaped text. 154451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 155c4bcbc2eSAndreas Gohr 156451f2842SAndreas Gohr 118 => 'HTML blocks (§4.6): script/pre/style/textarea tag group - raw HTML pass-through not supported', 157451f2842SAndreas Gohr 119 => 'HTML blocks (§4.6): table with following content - raw HTML pass-through not supported', 158451f2842SAndreas Gohr 120 => 'HTML blocks (§4.6): div with leading-space indent - raw HTML pass-through not supported', 159451f2842SAndreas Gohr 121 => 'HTML blocks (§4.6): closing div tag opens block - raw HTML pass-through not supported', 160451f2842SAndreas Gohr 122 => 'HTML blocks (§4.6): uppercase DIV with attributes - raw HTML pass-through not supported', 161451f2842SAndreas Gohr 123 => 'HTML blocks (§4.6): div with id on continuation line - raw HTML pass-through not supported', 162451f2842SAndreas Gohr 124 => 'HTML blocks (§4.6): div with multi-line attribute - raw HTML pass-through not supported', 163451f2842SAndreas Gohr 125 => 'HTML blocks (§4.6): div opening - raw HTML pass-through not supported', 164451f2842SAndreas Gohr 126 => 'HTML blocks (§4.6): div with id attribute - raw HTML pass-through not supported', 165451f2842SAndreas Gohr 127 => 'HTML blocks (§4.6): div with class attribute spread - raw HTML pass-through not supported', 166451f2842SAndreas Gohr 128 => 'HTML blocks (§4.6): div with garbage attribute syntax - raw HTML pass-through not supported', 167451f2842SAndreas Gohr 129 => 'HTML blocks (§4.6): div with anchor and literal asterisks - raw HTML pass-through not supported', 168451f2842SAndreas Gohr 130 => 'HTML blocks (§4.6): table with closing td/tr/table - raw HTML pass-through not supported', 169451f2842SAndreas Gohr 131 => 'HTML blocks (§4.6): self-closing div on single line - raw HTML pass-through not supported', 170451f2842SAndreas Gohr 132 => 'HTML blocks (§4.6): anchor as block-level element - raw HTML pass-through not supported', 171451f2842SAndreas Gohr 133 => 'HTML blocks (§4.6): unknown tag falls into any-tag group - raw HTML pass-through not supported', 172451f2842SAndreas Gohr 134 => 'HTML blocks (§4.6): inline tag (i) treated as block - raw HTML pass-through not supported', 173451f2842SAndreas Gohr 135 => 'HTML blocks (§4.6): closing ins tag opens block - raw HTML pass-through not supported', 174451f2842SAndreas Gohr 136 => 'HTML blocks (§4.6): del with paragraph break inside - raw HTML pass-through not supported', 175451f2842SAndreas Gohr 137 => 'HTML blocks (§4.6): del without blank line breaks - raw HTML pass-through not supported', 176451f2842SAndreas Gohr 138 => 'HTML blocks (§4.6): del with literal asterisks inline - raw HTML pass-through not supported', 177451f2842SAndreas Gohr 139 => 'HTML blocks (§4.6): pre with language and code child - raw HTML pass-through not supported', 178451f2842SAndreas Gohr 140 => 'HTML blocks (§4.6): script tag - raw HTML pass-through not supported', 179451f2842SAndreas Gohr 141 => 'HTML blocks (§4.6): style tag opening - raw HTML pass-through not supported', 180451f2842SAndreas Gohr 142 => 'HTML blocks (§4.6): unclosed style consuming rest of input - raw HTML pass-through not supported', 181451f2842SAndreas Gohr 143 => 'HTML blocks (§4.6): style inside blockquote - raw HTML pass-through not supported', 182451f2842SAndreas Gohr 144 => 'HTML blocks (§4.6): style inside list item - raw HTML pass-through not supported', 183451f2842SAndreas Gohr 145 => 'HTML blocks (§4.6): style followed by inline content - raw HTML pass-through not supported', 184451f2842SAndreas Gohr 146 => 'HTML blocks (§4.6): comment with following inline content - raw HTML pass-through not supported', 185451f2842SAndreas Gohr 147 => 'HTML blocks (§4.6): script tag with body content - raw HTML pass-through not supported', 186451f2842SAndreas Gohr 148 => 'HTML blocks (§4.6): comment - raw HTML pass-through not supported', 187451f2842SAndreas Gohr 149 => 'HTML blocks (§4.6): processing instruction - raw HTML pass-through not supported', 188451f2842SAndreas Gohr 150 => 'HTML blocks (§4.6): DOCTYPE declaration - raw HTML pass-through not supported', 189451f2842SAndreas Gohr 151 => 'HTML blocks (§4.6): CDATA - raw HTML pass-through not supported', 190451f2842SAndreas Gohr 152 => 'HTML blocks (§4.6): comment with leading whitespace - raw HTML pass-through not supported', 191451f2842SAndreas Gohr 153 => 'HTML blocks (§4.6): div with leading whitespace - raw HTML pass-through not supported', 192451f2842SAndreas Gohr 154 => 'HTML blocks (§4.6): paragraph followed by div - raw HTML pass-through not supported', 193451f2842SAndreas Gohr 155 => 'HTML blocks (§4.6): div followed by paragraph - raw HTML pass-through not supported', 194451f2842SAndreas Gohr 156 => 'HTML blocks (§4.6): paragraph then div (any-tag group) - raw HTML pass-through not supported', 195451f2842SAndreas Gohr 157 => 'HTML blocks (§4.6): div continuation across blank line - raw HTML pass-through not supported', 196451f2842SAndreas Gohr 158 => 'HTML blocks (§4.6): nested divs with content between - raw HTML pass-through not supported', 197451f2842SAndreas Gohr 159 => 'HTML blocks (§4.6): table followed by paragraph - raw HTML pass-through not supported', 198451f2842SAndreas Gohr 160 => 'HTML blocks (§4.6): table with markdown content - raw HTML pass-through not supported', 199b414dba2SAndreas Gohr 200451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 201451f2842SAndreas Gohr // Link refs (§4.7) 202451f2842SAndreas Gohr // 203451f2842SAndreas Gohr // The single-pass lexer cannot resolve forward references, so links by reference are not supported. 204451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 205451f2842SAndreas Gohr 206451f2842SAndreas Gohr 161 => 'Link refs (§4.7): basic definition with title - forward-reference definitions not supported', 207451f2842SAndreas Gohr 162 => 'Link refs (§4.7): definition with leading indent across lines - forward references not supported', 208451f2842SAndreas Gohr 163 => 'Link refs (§4.7): definition with multi-line title - forward-reference definitions not supported', 209451f2842SAndreas Gohr 164 => 'Link refs (§4.7): definition with multi-line label - forward-reference definitions not supported', 210451f2842SAndreas Gohr 165 => 'Link refs (§4.7): single-quote title across newline - forward-reference definitions not supported', 211451f2842SAndreas Gohr 166 => 'Link refs (§4.7): definition with whitespace-collapsed label - forward-reference definitions not supported', 212451f2842SAndreas Gohr 167 => 'Link refs (§4.7): definition without matching reference use - forward-reference definitions not supported', 213451f2842SAndreas Gohr 169 => 'Link refs (§4.7): pointy-bracket destination - forward-reference definitions not supported', 214451f2842SAndreas Gohr 170 => 'Link refs (§4.7): destination then blank line then title - forward-reference definitions not supported', 215451f2842SAndreas Gohr 171 => 'Link refs (§4.7): title-only without destination - forward-reference definitions not supported', 216451f2842SAndreas Gohr 172 => 'Link refs (§4.7): backslash escapes in destination and title - forward-reference definitions not supported', 217451f2842SAndreas Gohr 173 => 'Link refs (§4.7): definition with reference use following - forward-reference definitions not supported', 218451f2842SAndreas Gohr 174 => 'Link refs (§4.7): case-insensitive label match - forward-reference definitions not supported', 219451f2842SAndreas Gohr 175 => 'Link refs (§4.7): Unicode case folding for label - forward-reference definitions not supported', 220451f2842SAndreas Gohr 176 => 'Link refs (§4.7): single definition with no body - forward-reference definitions not supported', 221451f2842SAndreas Gohr 177 => 'Link refs (§4.7): definition with surrounding whitespace - forward-reference definitions not supported', 222451f2842SAndreas Gohr 178 => 'Link refs (§4.7): definition indented up to 3 spaces - forward-reference definitions not supported', 223451f2842SAndreas Gohr 179 => 'Link refs (§4.7): multi-line with title on next line - forward-reference definitions not supported', 224451f2842SAndreas Gohr 183 => 'Link refs (§4.7): definition does not interrupt paragraph - forward-reference definitions not supported', 225451f2842SAndreas Gohr 184 => 'Link refs (§4.7): between blockquote and paragraph - forward-reference definitions not supported', 226451f2842SAndreas Gohr 185 => 'Link refs (§4.7): lone definition emits nothing - forward-reference definitions not supported', 227451f2842SAndreas Gohr 186 => 'Link refs (§4.7): definition followed by HR - forward-reference definitions not supported', 228451f2842SAndreas Gohr 187 => 'Link refs (§4.7): multiple definitions in a row - forward-reference definitions not supported', 229451f2842SAndreas Gohr 188 => 'Link refs (§4.7): definition inside blockquote - forward-reference definitions not supported', 230451f2842SAndreas Gohr 231451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 232451f2842SAndreas Gohr // Paragraphs (§4.8) 233451f2842SAndreas Gohr // 234451f2842SAndreas Gohr // We do not support lazy continuation of paragraphs 235451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 236451f2842SAndreas Gohr 237451f2842SAndreas Gohr 193 => 'Paragraphs (§4.8): leading whitespace on continuation lines - no paragraph-open state to suppress indent', 238451f2842SAndreas Gohr 239451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 240451f2842SAndreas Gohr // Block quotes (§5.1) 241451f2842SAndreas Gohr // 242451f2842SAndreas Gohr // We only support block quotes that sit at column 0 with no leading spaces before the > marker. 243451f2842SAndreas Gohr // 244451f2842SAndreas Gohr // Lazy continuation of block quotes is not supported - every line of a block quote must start with > at column 0. 245451f2842SAndreas Gohr // 246451f2842SAndreas Gohr // Headers are not supported inside block quotes to not mess up TOC and section edit mechanisms. 247451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 248451f2842SAndreas Gohr 249451f2842SAndreas Gohr 206 => 'Block quotes (§5.1): header inside - no headers in quotes', 250451f2842SAndreas Gohr 207 => 'Block quotes (§5.1): header inside with no space after > - no headers in quotes', 251451f2842SAndreas Gohr 208 => 'Block quotes (§5.1): leading-space > with 1-3 spaces of indent - column-0-only policy', 252451f2842SAndreas Gohr 210 => 'Block quotes (§5.1): lazy continuation without > on next line - every quote line needs > at column 0', 253451f2842SAndreas Gohr 211 => 'Block quotes (§5.1): lazy continuation followed by quoted line - every quote line needs > at column 0', 254451f2842SAndreas Gohr 212 => 'Block quotes (§5.1): Setext underline --- after > foo - Setext headings not supported', 255451f2842SAndreas Gohr 215 => 'Block quotes (§5.1): fenced code split across boundary - depends on lazy continuation, not implemented', 256451f2842SAndreas Gohr 216 => 'Block quotes (§5.1): lazy continuation with indented sub-list - every quote line needs > at column 0', 257451f2842SAndreas Gohr 225 => 'Block quotes (§5.1): lazy continuation across paragraph - every quote line needs > at column 0', 258451f2842SAndreas Gohr 227 => 'Block quotes (§5.1): lazy continuation with empty line then text - every quote line needs > at column 0', 259451f2842SAndreas Gohr 228 => 'Block quotes (§5.1): lazy continuation in nested level - every quote line needs > at column 0', 260451f2842SAndreas Gohr 229 => 'Block quotes (§5.1): lazy continuation across nested levels - every quote line needs > at column 0', 261451f2842SAndreas Gohr 262451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 263451f2842SAndreas Gohr // List items (§5.2), Task list (§5.3), Lists (§5.4) 264451f2842SAndreas Gohr // 265451f2842SAndreas Gohr // List indentation uses a fixed 2-space-multiple step starting at 0, lazy continuation is not supported. 266451f2842SAndreas Gohr // 267451f2842SAndreas Gohr // We do not separate into tight and loose lists, but blank lines inside lists are still allowed and do not 268451f2842SAndreas Gohr // interrupt the list - they just don't trigger the extra-paragraph wrapping that CommonMark applies to loose lists. 269451f2842SAndreas Gohr // 270451f2842SAndreas Gohr // The rewriter groups items by 'u'/'o' type only, not by marker character. 271451f2842SAndreas Gohr // 272451f2842SAndreas Gohr // The task-list extension is not supported 273451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 274451f2842SAndreas Gohr 275451f2842SAndreas Gohr 232 => 'List items (§5.2): marker-width content-column for indented body - extra spaces after marker collapsed', 276451f2842SAndreas Gohr 235 => 'List items (§5.2): marker-width content-column with continuation - extra spaces after marker collapsed', 277451f2842SAndreas Gohr 237 => 'List items (§5.2): ordered nested in >> with 3-space indent - leading-> indent plus marker-width column', 278451f2842SAndreas Gohr 238 => 'List items (§5.2): bullet inside >> with leading-space continuation - column-0-only > plus interior space', 279451f2842SAndreas Gohr 241 => 'List items (§5.2): marker-width column with code/paragraph/quote - extra spaces after marker collapsed', 280451f2842SAndreas Gohr 242 => 'List items (§5.2): marker-width column plus indented code blanks - extra spaces plus blank-spanning code', 281451f2842SAndreas Gohr 249 => 'List items (§5.2): marker-width content-column for 10. foo - extra spaces after marker collapsed', 282451f2842SAndreas Gohr 254 => 'List items (§5.2): marker-width content-column edge case - extra spaces after marker collapsed', 283451f2842SAndreas Gohr 257 => 'List items (§5.2): empty bullet line then content next line - content column from next line not derived', 284451f2842SAndreas Gohr 258 => 'List items (§5.2): marker-width content-column for 1. foo - extra spaces after marker collapsed', 285451f2842SAndreas Gohr 263 => 'List items (§5.2): indent ambiguity at column 0/1/2 - 1- or 3-space indent rounded to nearest 2', 286451f2842SAndreas Gohr 264 => 'List items (§5.2): 1-space-indent nesting variation - 1- or 3-space indent rounded to nearest 2', 287451f2842SAndreas Gohr 265 => 'List items (§5.2): marker-width with multi-line continuation - extra spaces after marker collapsed', 288451f2842SAndreas Gohr 266 => 'List items (§5.2): marker-width with multi-line continuation variant - extra spaces after marker collapsed', 289451f2842SAndreas Gohr 267 => 'List items (§5.2): lazy continuation inside list item - column-0 paragraph wrap not supported', 290451f2842SAndreas Gohr 268 => 'List items (§5.2): lazy continuation across line break - column-0 paragraph wrap not supported', 291451f2842SAndreas Gohr 270 => 'List items (§5.2): lazy continuation across blank line - lazy plus loose/tight rules not implemented', 292451f2842SAndreas Gohr 271 => 'List items (§5.2): lazy continuation in nested quote-list-quote - column-0 paragraph wrap not supported', 293451f2842SAndreas Gohr 273 => 'List items (§5.2): interrupting paragraph without blank line - requires multi-pass parser to revisit text', 294451f2842SAndreas Gohr 275 => 'List items (§5.2): 3-space indent rounds to 2 for sub-list - 1- or 3-space indent rounded to nearest 2', 295451f2842SAndreas Gohr 276 => 'List items (§5.2): marker-width column with mixed types - extra spaces plus marker-character splits', 296451f2842SAndreas Gohr 277 => 'List items (§5.2): nested markers on a single line - extra spaces after marker collapsed', 297451f2842SAndreas Gohr 278 => 'List items (§5.2): marker-character switch splits the run - rewriter groups by u/o type, not character', 298451f2842SAndreas Gohr 279 => 'Task list (§5.3): basic checkbox marker - extension not implemented, literal [ ]/[x] stays as content', 299451f2842SAndreas Gohr 280 => 'Task list (§5.3): nested checkbox markers - extension not implemented, literal brackets stay as content', 300451f2842SAndreas Gohr 281 => 'Lists (§5.4): marker-character change unordered (- to +) - rewriter groups by u/o type, not character', 301451f2842SAndreas Gohr 282 => 'Lists (§5.4): ordered delimiter switch (. to )) - rewriter groups by u/o type, not character', 302451f2842SAndreas Gohr 284 => 'Lists (§5.4): interrupting paragraph without blank line - requires multi-pass parser', 303451f2842SAndreas Gohr 286 => 'Lists (§5.4): marker-width column for ordered list - extra spaces after marker collapsed', 304451f2842SAndreas Gohr 287 => 'Lists (§5.4): triple blank plus indented continuation - loose/tight classification not implemented', 305451f2842SAndreas Gohr 288 => 'Lists (§5.4): marker-character change at deeper level - rewriter groups by u/o type only', 306451f2842SAndreas Gohr 289 => 'Lists (§5.4): marker-character change with type switch - rewriter groups by u/o type only', 307451f2842SAndreas Gohr 290 => 'Lists (§5.4): 1-space-indent variations at top level - nesting indent rounded to nearest 2', 308451f2842SAndreas Gohr 291 => 'Lists (§5.4): 1-space-indent variations on ordered list - nesting indent rounded to nearest 2', 309451f2842SAndreas Gohr 292 => 'Lists (§5.4): marker-character change inside nested list - rewriter groups by u/o type only', 310451f2842SAndreas Gohr 293 => 'Lists (§5.4): marker-character change with mixed indent - u/o-only grouping plus indent rounding', 311451f2842SAndreas Gohr 294 => 'Lists (§5.4): lazy continuation across types - column-0 wrap plus marker splits not implemented', 312451f2842SAndreas Gohr 295 => 'Lists (§5.4): lazy continuation in nested list - column-0 paragraph wrap not supported', 313451f2842SAndreas Gohr 296 => 'Lists (§5.4): lazy continuation across blank line - lazy continuation plus loose/tight not implemented', 314451f2842SAndreas Gohr 297 => 'Lists (§5.4): blank-line classification in nested list - strict loose/tight rules not implemented', 315451f2842SAndreas Gohr 298 => 'Lists (§5.4): blank-line classification - strict loose/tight rules not implemented', 316451f2842SAndreas Gohr 300 => 'Lists (§5.4): blank-line class with marker change - loose/tight plus marker splits not implemented', 317451f2842SAndreas Gohr 301 => 'Lists (§5.4): blank-line classification plus marker-width - loose/tight plus extra-spaces-after-marker', 318451f2842SAndreas Gohr 304 => 'Lists (§5.4): blank line between sub-list items - strict loose/tight rules not implemented', 319451f2842SAndreas Gohr 305 => 'Lists (§5.4): blank line between deeply nested items - strict loose/tight rules not implemented', 320451f2842SAndreas Gohr 306 => 'Lists (§5.4): blank line at end of loose list - strict loose/tight rules not implemented', 321451f2842SAndreas Gohr 322451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 323451f2842SAndreas Gohr // Backslash escapes (§6.1) 324451f2842SAndreas Gohr // 325451f2842SAndreas Gohr // These examples exercise escape behavior inside features DokuWiki we do not to support, such as 326451f2842SAndreas Gohr // raw HTML pass-through, link titles, reference-link definitions. 327451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 328451f2842SAndreas Gohr 329451f2842SAndreas Gohr 317 => 'Backslash escapes (§6.1): escapes inside raw HTML - raw HTML pass-through not supported', 330451f2842SAndreas Gohr 318 => 'Backslash escapes (§6.1): escapes in link title - title attribute discarded, no DW link slot', 331451f2842SAndreas Gohr 319 => 'Backslash escapes (§6.1): in reference-link definition - forward-reference definitions not supported', 332451f2842SAndreas Gohr 333451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 334451f2842SAndreas Gohr // Entity refs (§6.2) 335451f2842SAndreas Gohr // 336451f2842SAndreas Gohr // These examples cross into raw HTML pass-through, link-title slots, strict URL rejection, or reference definitions 337451f2842SAndreas Gohr // — all features that DokuWiki does not implement for reasons documented in their own sections. 338451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 339451f2842SAndreas Gohr 340451f2842SAndreas Gohr 327 => 'Entity refs (§6.2): raw HTML tag with entity in attribute - raw HTML pass-through not supported', 341451f2842SAndreas Gohr 328 => 'Entity refs (§6.2): link with entity-decoded URL and title - title attribute discarded, no DW link slot', 342451f2842SAndreas Gohr 329 => 'Entity refs (§6.2): reference link with entity-decoded URL - forward-reference definitions not supported', 343451f2842SAndreas Gohr 337 => 'Entity refs (§6.2): decoded quote inside link URL - permissive URL slot, strict GFM rejection absent', 344451f2842SAndreas Gohr 345451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 346451f2842SAndreas Gohr // Code spans (§6.3) 347451f2842SAndreas Gohr // 348451f2842SAndreas Gohr // Cross-positional precedence between code spans and emphasis/links would need a pre-scan pass - our single-pass 349451f2842SAndreas Gohr // lexer matches leftmost-first and cannot reject an earlier opener because a later backtick span would consume its 350451f2842SAndreas Gohr // closer. 351451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 352451f2842SAndreas Gohr 353451f2842SAndreas Gohr 351 => 'Code spans (§6.3): cross-position precedence vs. emphasis - leftmost-match in lexer, no pre-scan', 354451f2842SAndreas Gohr 352 => 'Code spans (§6.3): span inside link label takes precedence - leftmost-match in lexer, no pre-scan', 355451f2842SAndreas Gohr 354 => 'Code spans (§6.3): raw HTML tag pass-through - raw HTML pass-through not supported', 356451f2842SAndreas Gohr 357451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 358451f2842SAndreas Gohr // Emphasis (§6.4) 359451f2842SAndreas Gohr // 360451f2842SAndreas Gohr // DokuWiki's regex lexer uses leftmost-match and cannot apply CommonMark's left/right-flanking rules that 361451f2842SAndreas Gohr // distinguish word-chars, whitespace, and punctuation for * / _ delimiters, the multiple-of-3 rule for overlapping 362451f2842SAndreas Gohr // runs, the excess-drop logic for long delimiter runs, or balanced-pair analysis across nested delimiters. 363451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 364451f2842SAndreas Gohr 365451f2842SAndreas Gohr 362 => 'Emphasis (§6.4): punctuation-adjacent * left/right flanking - flanking-delimiter analysis not implemented', 366451f2842SAndreas Gohr 363 => 'Emphasis (§6.4): Unicode whitespace (U+00A0) flanking - lexer is ASCII-only, u-flag-aware regex needed', 367451f2842SAndreas Gohr 368 => 'Emphasis (§6.4): punctuation-adjacent _ flanking - flanking-delimiter analysis not implemented', 368451f2842SAndreas Gohr 372 => 'Emphasis (§6.4): intraword _ with punctuation inside - flanking-delimiter analysis not implemented', 369451f2842SAndreas Gohr 376 => 'Emphasis (§6.4): bare * on next line should not pair - lone * taken as empty list marker, breaks paragraph', 370451f2842SAndreas Gohr 377 => 'Emphasis (§6.4): * followed by ( as punctuation-adjacent - flanking-delimiter analysis not implemented', 371451f2842SAndreas Gohr 378 => 'Emphasis (§6.4): nested *(*foo*)* with punctuation - flanking plus balanced-pair analysis not implemented', 372451f2842SAndreas Gohr 382 => 'Emphasis (§6.4): nested _(_foo_)_ with punctuation - flanking plus balanced-pair analysis not implemented', 373451f2842SAndreas Gohr 389 => 'Emphasis (§6.4): punctuation-adjacent ** flanking - flanking-delimiter analysis not implemented', 374451f2842SAndreas Gohr 394 => 'Emphasis (§6.4): punctuation-adjacent __ flanking - flanking-delimiter analysis not implemented', 375451f2842SAndreas Gohr 395 => 'Emphasis (§6.4): intraword __ left/right flanking - flanking-delimiter analysis not implemented', 376451f2842SAndreas Gohr 396 => 'Emphasis (§6.4): intraword __ across digits (5__6__78) - flanking-delimiter analysis not implemented', 377451f2842SAndreas Gohr 397 => 'Emphasis (§6.4): intraword __ with Cyrillic - flanking-delimiter analysis not implemented', 378451f2842SAndreas Gohr 398 => 'Emphasis (§6.4): __foo, __bar__, baz__ flanking with pairing - flanking-delimiter analysis not implemented', 379451f2842SAndreas Gohr 401 => 'Emphasis (§6.4): ** followed by ( as punctuation-adjacent - flanking-delimiter analysis not implemented', 380451f2842SAndreas Gohr 404 => 'Emphasis (§6.4): nested *bar* inside **foo ... foo** - flanking-delimiter analysis not implemented', 381451f2842SAndreas Gohr 407 => 'Emphasis (§6.4): __ followed by ( as punctuation-adjacent - flanking-delimiter analysis not implemented', 382451f2842SAndreas Gohr 409 => 'Emphasis (§6.4): __foo__bar intraword close - flanking-delimiter analysis not implemented', 383451f2842SAndreas Gohr 410 => 'Emphasis (§6.4): intraword __ with leading Cyrillic - flanking-delimiter analysis not implemented', 384451f2842SAndreas Gohr 411 => 'Emphasis (§6.4): __foo__bar__baz__ multiple pairs - flanking-delimiter analysis not implemented', 385451f2842SAndreas Gohr 412 => 'Emphasis (§6.4): __(bar)__ punctuation-adjacent - flanking-delimiter analysis not implemented', 386451f2842SAndreas Gohr 416 => 'Emphasis (§6.4): overlapping _foo _bar_ baz_ - CommonMark rule 9 multiple-of-3 not implemented', 387451f2842SAndreas Gohr 417 => 'Emphasis (§6.4): overlapping _ / __ with flanking - flanking plus multiple-of-3 not implemented', 388451f2842SAndreas Gohr 418 => 'Emphasis (§6.4): overlapping *foo *bar** - multiple-of-3 rule not implemented', 389451f2842SAndreas Gohr 419 => 'Emphasis (§6.4): nested *foo **bar** baz* - balanced-pair analysis not implemented', 390451f2842SAndreas Gohr 421 => 'Emphasis (§6.4): overlapping *foo**bar* - multiple-of-3 rule not implemented', 391451f2842SAndreas Gohr 422 => 'Emphasis (§6.4): nested ***foo** bar* - triple-delimiter analysis not implemented', 392451f2842SAndreas Gohr 423 => 'Emphasis (§6.4): nested *foo **bar*** - triple-delimiter analysis not implemented', 393451f2842SAndreas Gohr 424 => 'Emphasis (§6.4): nested *foo**bar*** - triple-delimiter analysis not implemented', 394451f2842SAndreas Gohr 425 => 'Emphasis (§6.4): triple foo***bar***baz - triple-delimiter analysis not implemented', 395451f2842SAndreas Gohr 426 => 'Emphasis (§6.4): long delimiter runs of mixed lengths - excess-drop logic not implemented', 396451f2842SAndreas Gohr 427 => 'Emphasis (§6.4): deeply nested *foo **bar *baz* bim** bop* - balanced-pair analysis not implemented', 397451f2842SAndreas Gohr 428 => 'Emphasis (§6.4): inside link label *foo [*bar*](/url)* - link label is flat string, not re-tokenized', 398451f2842SAndreas Gohr 434 => 'Emphasis (§6.4): overlapping __foo __bar__ baz__ - multiple-of-3 rule not implemented', 399451f2842SAndreas Gohr 435 => 'Emphasis (§6.4): ____foo__ bar__ leading long run - excess-drop logic not implemented', 400451f2842SAndreas Gohr 436 => 'Emphasis (§6.4): **foo **bar**** trailing long run - excess-drop logic not implemented', 401451f2842SAndreas Gohr 439 => 'Emphasis (§6.4): nested ***foo* bar** - triple-delimiter analysis not implemented', 402451f2842SAndreas Gohr 440 => 'Emphasis (§6.4): nested **foo *bar*** - triple-delimiter analysis not implemented', 403451f2842SAndreas Gohr 441 => 'Emphasis (§6.4): deeply nested **foo *bar **baz** bim* bop** - balanced-pair analysis not implemented', 404451f2842SAndreas Gohr 442 => 'Emphasis (§6.4): inside link label **foo [*bar*](/url)** - link label is flat string, not re-tokenized', 405451f2842SAndreas Gohr 463 => 'Emphasis (§6.4): __foo_ mixed _ / __ pairing - flanking-delimiter analysis not implemented', 406451f2842SAndreas Gohr 464 => 'Emphasis (§6.4): _foo__ mixed _ / __ pairing - flanking-delimiter analysis not implemented', 407451f2842SAndreas Gohr 465 => 'Emphasis (§6.4): ___foo__ run-length analysis - flanking plus run-length analysis not implemented', 408451f2842SAndreas Gohr 466 => 'Emphasis (§6.4): ____foo_ run-length analysis - flanking plus run-length analysis not implemented', 409451f2842SAndreas Gohr 467 => 'Emphasis (§6.4): __foo___ run-length analysis - flanking plus run-length analysis not implemented', 410451f2842SAndreas Gohr 468 => 'Emphasis (§6.4): _foo____ run-length analysis - flanking plus run-length analysis not implemented', 411451f2842SAndreas Gohr 470 => 'Emphasis (§6.4): nested *_foo_* - balanced-pair analysis not implemented', 412451f2842SAndreas Gohr 472 => 'Emphasis (§6.4): nested _*foo*_ - balanced-pair analysis not implemented', 413451f2842SAndreas Gohr 473 => 'Emphasis (§6.4): ****foo**** excess-drop (4+4 to strong) - excess-drop logic not implemented', 414451f2842SAndreas Gohr 474 => 'Emphasis (§6.4): ____foo____ excess-drop (4+4 to strong) - excess-drop logic not implemented', 415451f2842SAndreas Gohr 475 => 'Emphasis (§6.4): ******foo****** excess-drop (6+6 to strong) - excess-drop logic not implemented', 416451f2842SAndreas Gohr 477 => 'Emphasis (§6.4): _____foo_____ excess-drop (5+5 to em+strong) - excess-drop logic not implemented', 417451f2842SAndreas Gohr 478 => 'Emphasis (§6.4): *foo _bar* baz_ overlapping different - flanking plus balanced-pair not implemented', 418451f2842SAndreas Gohr 479 => 'Emphasis (§6.4): *foo __bar *baz bim__ bam* crossing - flanking plus balanced-pair not implemented', 419451f2842SAndreas Gohr 480 => 'Emphasis (§6.4): **foo **bar baz** overlapping same - flanking plus balanced-pair not implemented', 420451f2842SAndreas Gohr 482 => 'Emphasis (§6.4): crossing link boundary *[bar*](/url) - leftmost-match cannot reject opener crossing link', 421451f2842SAndreas Gohr 483 => 'Emphasis (§6.4): crossing link _foo [bar_](/url) - leftmost-match cannot reject opener crossing link', 422451f2842SAndreas Gohr 484 => 'Emphasis (§6.4): raw HTML <img/> adjacent to * - raw HTML pass-through not supported', 423451f2842SAndreas Gohr 485 => 'Emphasis (§6.4): raw HTML <a href="**"> adjacent to ** - raw HTML pass-through not supported', 424451f2842SAndreas Gohr 486 => 'Emphasis (§6.4): raw HTML <a href="__"> adjacent to __ - raw HTML pass-through not supported', 425451f2842SAndreas Gohr 489 => 'Emphasis (§6.4): vs angle-bracket autolink with ** inside URL - leftmost-match cannot reorder spans', 426451f2842SAndreas Gohr 490 => 'Emphasis (§6.4): vs angle-bracket autolink with __ inside URL - leftmost-match cannot reorder spans', 427451f2842SAndreas Gohr 428451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 429451f2842SAndreas Gohr // Links (§6.6) 430451f2842SAndreas Gohr // 431451f2842SAndreas Gohr // GfmLink deliberately does not implement several link features: 432451f2842SAndreas Gohr // 433451f2842SAndreas Gohr // - Title attribute ("title" / 'title' / (title) after the URL). Parses cleanly but is discarded — DokuWiki link 434451f2842SAndreas Gohr // instructions have no title slot, and plumbing one through every renderer is out of scope. 435451f2842SAndreas Gohr // - Pointy-bracket destinations <...>. Rarely used; regex cost and interaction with raw-HTML detection outweigh 436451f2842SAndreas Gohr // the benefit. 437451f2842SAndreas Gohr // - Balanced parentheses inside URL destinations. 438451f2842SAndreas Gohr // - Strict GFM URL rejection (e.g. unquoted whitespace, decoded quote inside URL). GfmLink uses a permissive URL 439451f2842SAndreas Gohr // slot. 440451f2842SAndreas Gohr // - Nested brackets in link labels — single-pass lexer cannot resolve, label class forbids brackets so outer 441451f2842SAndreas Gohr // match fails. 442451f2842SAndreas Gohr // - Inline formatting inside link labels — label is taken as a flat string and not re-tokenized. 443451f2842SAndreas Gohr // - Reference links ([text][id], [text][], [foo] with matching definition). Forward references would require a 444451f2842SAndreas Gohr // two-pass parse; only inline links [text](url) are supported. 445451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 446451f2842SAndreas Gohr 447451f2842SAndreas Gohr 493 => 'Links (§6.6): link with title attribute - title slot not supported by DW link instructions', 448451f2842SAndreas Gohr 495 => 'Links (§6.6): empty URL destination [link]() - GfmLink pattern requires non-empty URL', 449451f2842SAndreas Gohr 496 => 'Links (§6.6): pointy-bracket link destination - not supported, regex cost outweighs benefit', 450451f2842SAndreas Gohr 497 => 'Links (§6.6): unquoted whitespace in URL slot - strict GFM URL rejection not implemented', 451451f2842SAndreas Gohr 498 => 'Links (§6.6): pointy-bracket destination with spaces - not supported', 452451f2842SAndreas Gohr 500 => 'Links (§6.6): pointy-bracket destination with newline - not supported', 453451f2842SAndreas Gohr 501 => 'Links (§6.6): pointy-bracket destination containing ) - not supported', 454451f2842SAndreas Gohr 502 => 'Links (§6.6): pointy-bracket destination with trailing backslash - not supported', 455451f2842SAndreas Gohr 503 => 'Links (§6.6): malformed pointy-bracket destinations - not supported', 456451f2842SAndreas Gohr 505 => 'Links (§6.6): balanced parens inside URL destination - regex single-level only', 457451f2842SAndreas Gohr 507 => 'Links (§6.6): pointy-bracket wrapping unbalanced parens - not supported', 458451f2842SAndreas Gohr 512 => 'Links (§6.6): destination that parses as title - edge case not supported', 459451f2842SAndreas Gohr 513 => 'Links (§6.6): three quoting styles for link title - title slot not supported', 460451f2842SAndreas Gohr 514 => 'Links (§6.6): title with HTML-entity escape - title slot not supported', 461451f2842SAndreas Gohr 515 => 'Links (§6.6): title separated by non-breaking space - title slot not supported', 462451f2842SAndreas Gohr 516 => 'Links (§6.6): title with nested balanced quotes - Markdown.pl quirk, not supported', 463451f2842SAndreas Gohr 517 => 'Links (§6.6): title with different inner quote type - title slot not supported', 464451f2842SAndreas Gohr 518 => 'Links (§6.6): multi-line link title - title slot not supported', 465451f2842SAndreas Gohr 520 => 'Links (§6.6): label with literal nested brackets - label class forbids brackets, outer match fails', 466451f2842SAndreas Gohr 522 => 'Links (§6.6): nested bracket forms inner link only - lexer cannot resolve nested labels', 467451f2842SAndreas Gohr 524 => 'Links (§6.6): inline formatting inside link label - label is flat string, not re-tokenized', 468451f2842SAndreas Gohr 526 => 'Links (§6.6): nested links - inner link matches, outer falls back to literal', 469451f2842SAndreas Gohr 527 => 'Links (§6.6): nested links inside emphasis - leftmost-match cannot resolve nesting', 470451f2842SAndreas Gohr 528 => 'Links (§6.6): image-as-alt with nested link - alt class forbids brackets, outer image fails', 471451f2842SAndreas Gohr 529 => 'Links (§6.6): link text grouping vs emphasis - leftmost-match cannot override', 472451f2842SAndreas Gohr 530 => 'Links (§6.6): emphasis/bracket crossing - leftmost-match cannot override', 473451f2842SAndreas Gohr 532 => 'Links (§6.6): raw HTML inside link text - raw HTML pass-through not supported', 474451f2842SAndreas Gohr 533 => 'Links (§6.6): code span inside link text - requires pre-scan pass for cross-position precedence', 475451f2842SAndreas Gohr 534 => 'Links (§6.6): autolink inside link text - angle-bracket autolinks not supported', 476451f2842SAndreas Gohr 535 => 'Links (§6.6): reference link [foo][bar] - forward-reference definitions not supported', 477451f2842SAndreas Gohr 536 => 'Links (§6.6): reference link with emphasis in text - forward-reference definitions not supported', 478451f2842SAndreas Gohr 537 => 'Links (§6.6): reference link with multi-line text - forward-reference definitions not supported', 479451f2842SAndreas Gohr 538 => 'Links (§6.6): reference link case-insensitive label - forward-reference definitions not supported', 480451f2842SAndreas Gohr 539 => 'Links (§6.6): reference link whitespace-collapsed label - forward-reference definitions not supported', 481451f2842SAndreas Gohr 540 => 'Links (§6.6): reference link with multi-word label - forward-reference definitions not supported', 482451f2842SAndreas Gohr 541 => 'Links (§6.6): reference link case-insensitive Unicode - forward-reference definitions not supported', 483451f2842SAndreas Gohr 542 => 'Links (§6.6): reference link with whitespace before label - forward-reference definitions not supported', 484451f2842SAndreas Gohr 543 => 'Links (§6.6): reference link with whitespace inside brackets - forward-reference definitions not supported', 485451f2842SAndreas Gohr 544 => 'Links (§6.6): reference link no whitespace before label - forward-reference definitions not supported', 486451f2842SAndreas Gohr 545 => 'Links (§6.6): reference link first def wins on duplicate - forward-reference definitions not supported', 487451f2842SAndreas Gohr 546 => 'Links (§6.6): reference link with backslash in label - forward-reference definitions not supported', 488451f2842SAndreas Gohr 547 => 'Links (§6.6): reference link inline content not parsed - forward-reference definitions not supported', 489451f2842SAndreas Gohr 548 => 'Links (§6.6): reference link does not interrupt sentences - forward-reference definitions not supported', 490451f2842SAndreas Gohr 549 => 'Links (§6.6): reference link with empty inner label - forward-reference definitions not supported', 491451f2842SAndreas Gohr 550 => 'Links (§6.6): reference link [foo][] collapsed form - forward-reference definitions not supported', 492451f2842SAndreas Gohr 551 => 'Links (§6.6): reference link with bracketed text - forward-reference definitions not supported', 493451f2842SAndreas Gohr 552 => 'Links (§6.6): reference link with whitespace at boundary - forward-reference definitions not supported', 494451f2842SAndreas Gohr 553 => 'Links (§6.6): reference link with newline between - forward-reference definitions not supported', 495451f2842SAndreas Gohr 557 => 'Links (§6.6): reference link with newline-separated label - forward-reference definitions not supported', 496451f2842SAndreas Gohr 558 => 'Links (§6.6): reference link newline-separated variant - forward-reference definitions not supported', 497451f2842SAndreas Gohr 560 => 'Links (§6.6): reference link with literal [] - forward-reference definitions not supported', 498451f2842SAndreas Gohr 561 => 'Links (§6.6): collapsed reference link [foo][] - forward-reference definitions not supported', 499451f2842SAndreas Gohr 562 => 'Links (§6.6): collapsed reference link with emphasis - forward-reference definitions not supported', 500451f2842SAndreas Gohr 563 => 'Links (§6.6): collapsed reference link case-insensitive - forward-reference definitions not supported', 501451f2842SAndreas Gohr 564 => 'Links (§6.6): collapsed reference link with newline - forward-reference definitions not supported', 502451f2842SAndreas Gohr 565 => 'Links (§6.6): shortcut reference link [foo] - forward-reference definitions not supported', 503451f2842SAndreas Gohr 566 => 'Links (§6.6): shortcut reference link with emphasis - forward-reference definitions not supported', 504451f2842SAndreas Gohr 567 => 'Links (§6.6): shortcut reference link with whitespace label - forward-reference definitions not supported', 505451f2842SAndreas Gohr 568 => 'Links (§6.6): shortcut reference link with multi-word label - forward-reference definitions not supported', 506451f2842SAndreas Gohr 569 => 'Links (§6.6): shortcut reference link case-insensitive - forward-reference definitions not supported', 507451f2842SAndreas Gohr 570 => 'Links (§6.6): shortcut reference link with whitespace - forward-reference definitions not supported', 508451f2842SAndreas Gohr 571 => 'Links (§6.6): shortcut reference link with backslash escape - forward-reference definitions not supported', 509451f2842SAndreas Gohr 572 => 'Links (§6.6): shortcut reference link with emphasis in label - forward-reference definitions not supported', 510451f2842SAndreas Gohr 573 => 'Links (§6.6): reference link with literal [foo] - forward-reference definitions not supported', 511451f2842SAndreas Gohr 574 => 'Links (§6.6): reference link with double bracket [[foo]] - forward-reference definitions not supported', 512451f2842SAndreas Gohr 575 => 'Links (§6.6): reference link inside paragraph - forward-reference definitions not supported', 513451f2842SAndreas Gohr 576 => 'Links (§6.6): reference link multi-instance - forward-reference definitions not supported', 514451f2842SAndreas Gohr 577 => 'Links (§6.6): reference link collapsed-form fallback - forward-reference definitions not supported', 515451f2842SAndreas Gohr 578 => 'Links (§6.6): reference link shortcut-form fallback - forward-reference definitions not supported', 516451f2842SAndreas Gohr 579 => 'Links (§6.6): reference link full-form fallback - forward-reference definitions not supported', 517451f2842SAndreas Gohr 518451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 519451f2842SAndreas Gohr // Images (§6.7) 520451f2842SAndreas Gohr // 521451f2842SAndreas Gohr // We don't have a title slot or support forward references 522451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 523451f2842SAndreas Gohr 524451f2842SAndreas Gohr 580 => 'Images (§6.7): image with title attribute - title slot not supported by DW link instructions', 525451f2842SAndreas Gohr 581 => 'Images (§6.7): reference-style image - forward-reference definitions not supported', 526451f2842SAndreas Gohr 582 => 'Images (§6.7): nested image-in-image alt - alt forbids brackets, leftmost-match cannot reorder', 527451f2842SAndreas Gohr 583 => 'Images (§6.7): link inside image alt - alt forbids brackets, leftmost-match cannot reorder', 528451f2842SAndreas Gohr 584 => 'Images (§6.7): collapsed reference-style image - forward-reference definitions not supported', 529451f2842SAndreas Gohr 585 => 'Images (§6.7): full reference-style image - forward-reference definitions not supported', 530451f2842SAndreas Gohr 587 => 'Images (§6.7): image with title attribute variant - title slot not supported', 531451f2842SAndreas Gohr 588 => 'Images (§6.7): pointy-bracket image destination - not supported, same as link pointy-brackets', 532451f2842SAndreas Gohr 590 => 'Images (§6.7): reference-style image with label match - forward-reference definitions not supported', 533451f2842SAndreas Gohr 591 => 'Images (§6.7): reference-style image case-insensitive - forward-reference definitions not supported', 534451f2842SAndreas Gohr 592 => 'Images (§6.7): collapsed reference-style image ![foo][] - forward-reference definitions not supported', 535451f2842SAndreas Gohr 593 => 'Images (§6.7): collapsed reference-style image with emphasis - forward-reference definitions not supported', 536451f2842SAndreas Gohr 594 => 'Images (§6.7): collapsed reference-style case-insensitive - forward-reference definitions not supported', 537451f2842SAndreas Gohr 595 => 'Images (§6.7): reference-style image with whitespace - forward-reference definitions not supported', 538451f2842SAndreas Gohr 596 => 'Images (§6.7): shortcut reference-style image ![foo] - forward-reference definitions not supported', 539451f2842SAndreas Gohr 597 => 'Images (§6.7): shortcut reference-style image with emphasis - forward-reference definitions not supported', 540451f2842SAndreas Gohr 598 => 'Images (§6.7): image with unescaped nested brackets - literal-fallback behavior not supported', 541451f2842SAndreas Gohr 599 => 'Images (§6.7): shortcut reference-style case-insensitive - forward-reference definitions not supported', 542451f2842SAndreas Gohr 600 => 'Images (§6.7): image-via-reference fallback !\[foo] - forward-reference definitions not supported', 543451f2842SAndreas Gohr 601 => 'Images (§6.7): image-via-reference fallback \![foo] - forward-reference definitions not supported', 544451f2842SAndreas Gohr 545451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 546451f2842SAndreas Gohr // Autolinks (§6.8) 547451f2842SAndreas Gohr // 548451f2842SAndreas Gohr // Externallink builds one regex per scheme listed in conf/scheme.conf, and only the schemes in that allow-list are 549451f2842SAndreas Gohr // recognised as bare-URL autolinks. Schemes outside the allow-list (mailto, made-up schemes, localhost) fall 550451f2842SAndreas Gohr // through to default escaping and the URL is emitted as literal text 551451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 552451f2842SAndreas Gohr 553451f2842SAndreas Gohr 605 => 'Autolinks (§6.8): angle-bracket autolink with MAILTO: - mailto not in conf/scheme.conf default allow-list', 554451f2842SAndreas Gohr 606 => 'Autolinks (§6.8): angle-bracket autolink with a+b+c scheme - scheme not in conf/scheme.conf allow-list', 555451f2842SAndreas Gohr 607 => 'Autolinks (§6.8): angle-bracket autolink with made-up scheme - scheme not in conf/scheme.conf allow-list', 556451f2842SAndreas Gohr 609 => 'Autolinks (§6.8): angle-bracket with localhost:5001 - localhost not in conf/scheme.conf allow-list', 557*1beb7450SAndreas Gohr 619 => 'Autolinks (§6.8): bare URL stays plain text - DW autolinks bare URLs as a feature', 558*1beb7450SAndreas Gohr 629 => 'Autolinks ext (§6.9): bare email autolink - extension not implemented', 559*1beb7450SAndreas Gohr 630 => 'Autolinks ext (§6.9): bare email with + in local part - extension not implemented', 560*1beb7450SAndreas Gohr 631 => 'Autolinks ext (§6.9): bare email edge cases (trailing punctuation) - extension not implemented', 561451f2842SAndreas Gohr 562451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 563451f2842SAndreas Gohr // Raw HTML (§6.10) 564451f2842SAndreas Gohr // 565451f2842SAndreas Gohr // We do not support raw HTML pass-through at all. 566451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 567451f2842SAndreas Gohr 568451f2842SAndreas Gohr 632 => 'Raw HTML (§6.10): open tag - pass-through not supported', 569451f2842SAndreas Gohr 633 => 'Raw HTML (§6.10): closing tag - pass-through not supported', 570451f2842SAndreas Gohr 634 => 'Raw HTML (§6.10): tag with multi-line attributes - pass-through not supported', 571451f2842SAndreas Gohr 635 => 'Raw HTML (§6.10): tag with line breaks in attributes - pass-through not supported', 572451f2842SAndreas Gohr 636 => 'Raw HTML (§6.10): tag with custom name and attributes - pass-through not supported', 573451f2842SAndreas Gohr 638 => 'Raw HTML (§6.10): tag with illegal attribute names - pass-through not supported', 574451f2842SAndreas Gohr 639 => 'Raw HTML (§6.10): tag with illegal attribute values - pass-through not supported', 575451f2842SAndreas Gohr 641 => 'Raw HTML (§6.10): open and closing tags pair - pass-through not supported', 576451f2842SAndreas Gohr 642 => 'Raw HTML (§6.10): HTML comment - pass-through not supported', 577451f2842SAndreas Gohr 643 => 'Raw HTML (§6.10): invalid comment - pass-through not supported', 578451f2842SAndreas Gohr 644 => 'Raw HTML (§6.10): processing instruction - pass-through not supported', 579451f2842SAndreas Gohr 645 => 'Raw HTML (§6.10): declaration - pass-through not supported', 580451f2842SAndreas Gohr 646 => 'Raw HTML (§6.10): declaration with single-letter name - pass-through not supported', 581451f2842SAndreas Gohr 647 => 'Raw HTML (§6.10): EMPTY declaration - pass-through not supported', 582451f2842SAndreas Gohr 648 => 'Raw HTML (§6.10): CDATA section - pass-through not supported', 583451f2842SAndreas Gohr 649 => 'Raw HTML (§6.10): tag with entity ref in attribute - pass-through not supported', 584451f2842SAndreas Gohr 650 => 'Raw HTML (§6.10): tag with backslash in attribute - pass-through not supported', 585451f2842SAndreas Gohr 651 => 'Raw HTML (§6.10): tag with entity quote in attribute - pass-through not supported', 586451f2842SAndreas Gohr 587451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 588451f2842SAndreas Gohr // Raw HTML (§6.11) 589451f2842SAndreas Gohr // 590451f2842SAndreas Gohr // The Disallowed Raw HTML extension is a filter on top of raw HTML pass-through. DokuWiki escapes raw HTML by 591451f2842SAndreas Gohr // policy, so the filter has no input to operate on. 592451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 593451f2842SAndreas Gohr 594451f2842SAndreas Gohr 652 => 'Raw HTML (§6.11): disallowed-tag filter on output - DW escapes raw HTML by policy, filter has no input', 595451f2842SAndreas Gohr 596451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 597451f2842SAndreas Gohr // Hard breaks (§6.12) 598451f2842SAndreas Gohr // 599451f2842SAndreas Gohr // The skipped cases sit inside raw HTML tags, which DokuWiki does not pass through by default. 600451f2842SAndreas Gohr // ----------------------------------------------------------------------------------------------------------------- 601451f2842SAndreas Gohr 602451f2842SAndreas Gohr 662 => 'Hard breaks (§6.12): inside raw HTML tag - raw HTML pass-through not supported', 603451f2842SAndreas Gohr 663 => 'Hard breaks (§6.12): backslash form inside raw HTML tag - raw HTML pass-through not supported', 604451f2842SAndreas Gohr 60572b2703bSAndreas Gohr]; 606