Appearance
Appendix D — Index of Examples
This appendix indexes the example blocks used in the main specification chapters. Each example is also a vector in the conformance suite (§13), cross-referenced here by vector ID.
D.1 Block examples
| Vector ID | Chapter § | Construct |
|---|---|---|
core/blocks/paragraph/basic | 6.2 | simple paragraph |
core/blocks/paragraph/blank-line-terminator | 6.2 | paragraph ends at blank line |
core/blocks/heading/atx-1-6 | 6.3 | all six heading levels |
core/blocks/heading/trailing-hashes | 6.3 | trailing # ignored |
core/blocks/heading/seven-hashes | 6.3 | 7+ hashes → paragraph |
core/blocks/thematic-break/dashes | 6.4 | --- |
core/blocks/thematic-break/stars | 6.4 | *** |
core/blocks/code/fenced-backticks | 6.5 | ``` ... ``` |
core/blocks/code/fenced-tildes | 6.5 | ~~~ ... ~~~ |
core/blocks/code/info-string-lang | 6.5 | ```js |
core/blocks/quote/single-level | 6.6 | > text |
core/blocks/quote/nested | 6.6 | >> text |
core/blocks/list/unordered-dash | 6.7 | - item |
core/blocks/list/ordered | 6.7 | 1. item |
core/blocks/list/tight-vs-loose | 6.7 | paragraph wrapping |
core/blocks/table/basic | 6.8 | simple table |
core/blocks/table/alignment | 6.8 | left/right/center |
D.2 Inline examples
| Vector ID | Chapter § | Construct |
|---|---|---|
core/inlines/code/single-backtick | 7.3 | `x` |
core/inlines/code/double-backtick-escape | 7.3 | x`y |
core/inlines/emphasis/star-single | 7.4 | *em* |
core/inlines/emphasis/star-double | 7.4 | **strong** |
core/inlines/emphasis/underscore-word-boundary | 7.4 | snake_case_id |
core/inlines/emphasis/nested | 7.4 | ***both*** |
core/inlines/strikethrough/basic | 7.5 | ~~del~~ |
core/inlines/link/inline | 7.6 | [x](url) |
core/inlines/link/title | 7.6 | [x](url "title") |
core/inlines/link/balanced-parens-in-url | 7.6 | [x](a(b)c) |
core/inlines/image/basic | 7.7 |  |
core/inlines/autolink/https | 7.8 | <https://x> |
core/inlines/autolink/email | 7.8 | <a@b.com> |
core/inlines/line-break/hard-spaces | 7.9 | \n |
core/inlines/line-break/hard-backslash | 7.9 | \\\n |
core/inlines/line-break/soft | 7.9 | single LF |
core/inlines/entity/named | 7.11 | & |
core/inlines/escape/punctuation | 7.10 | \\* |
D.3 Custom-element examples
| Vector ID | Chapter § | Construct |
|---|---|---|
core/html/void/self-closing | 8.3.1 | <md-x/> |
core/html/open-close/with-content | 8.3.2 | <md-x>content</md-x> |
core/html/open-close/attrs | 8.3.2 | <md-x a="1" b="2">...</md-x> |
core/html/whitelist/rejected | 8.2 | non-whitelisted tag → text |
core/html/attrs/on-attr-rejected | 8.4.1 | onclick= dropped |
core/html/attrs/data-mdflow-rejected | 8.4.1 | reserved namespace |
D.4 Security examples
Every security vector listed in §13.4 is an example of the corresponding prohibition or filter. Highlights:
| Vector ID | Chapter § | Attack vector |
|---|---|---|
security/url-filter/javascript-scheme | 10.3.1 | [x](javascript:alert(1)) |
security/url-filter/percent-encoded-javascript | 10.3.1.1 | [x](java%73cript:...) |
security/url-filter/null-byte-evasion | 10.3.1.1 | java\0script:... |
security/url-filter/whitespace-prefix | 10.3.1.1 | javascript:... |
security/url-filter/data-url | 10.3.1 | data:text/html,... |
security/url-filter/blob-url | 10.3.1 | blob:... |
security/url-filter/vbscript | 10.3.1 | vbscript:... |
security/no-event-handlers/onclick | 10.2 | <md-x onclick=...> |
security/no-event-handlers/onerror-camelcase | 10.2 | <md-x onError=...> |
security/code-opacity/script-in-code | 10.2 | `<script>` |
D.5 Streaming examples
| Vector ID | Chapter § | Scenario |
|---|---|---|
core/streaming/paragraph/byte-split | 5.2 | paragraph across boundary |
core/streaming/code-block/incomplete-fence | 5.3 | pending code block |
core/streaming/table/row-by-row | 5.3, 6.8.1 | table growing over chunks |
core/streaming/utf8/split-codepoint | 5.9 | chunk in middle of char |
core/streaming/flush/no-closing-fence | 5.5 | code block finalized on flush |
D.6 Interactive & event examples
| Vector ID | Chapter § | Scenario |
|---|---|---|
core/html/interactive/state-preserved | 12.2.2 | re-render keeps state |
core/html/interactive/identity-by-id | 12.2.3 | id attribute identity |
core/html/events/progress-emit | 12.1.3 | <progress/> emits event |
core/html/events/no-dom | 12.1.4 | event elements produce no DOM |
D.7 Error-recovery examples
| Vector ID | Chapter § | Scenario |
|---|---|---|
core/errors/plugin-tokenize-throws | 11.4.1 | region becomes Text |
core/errors/plugin-render-throws | 11.4.2 | sentinel span emitted |
core/errors/stream-continues-after-error | 11.6 | later tokens parse |