Skip to content

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 IDChapter §Construct
core/blocks/paragraph/basic6.2simple paragraph
core/blocks/paragraph/blank-line-terminator6.2paragraph ends at blank line
core/blocks/heading/atx-1-66.3all six heading levels
core/blocks/heading/trailing-hashes6.3trailing # ignored
core/blocks/heading/seven-hashes6.37+ hashes → paragraph
core/blocks/thematic-break/dashes6.4---
core/blocks/thematic-break/stars6.4***
core/blocks/code/fenced-backticks6.5``` ... ```
core/blocks/code/fenced-tildes6.5~~~ ... ~~~
core/blocks/code/info-string-lang6.5```js
core/blocks/quote/single-level6.6> text
core/blocks/quote/nested6.6>> text
core/blocks/list/unordered-dash6.7- item
core/blocks/list/ordered6.71. item
core/blocks/list/tight-vs-loose6.7paragraph wrapping
core/blocks/table/basic6.8simple table
core/blocks/table/alignment6.8left/right/center

D.2 Inline examples

Vector IDChapter §Construct
core/inlines/code/single-backtick7.3`x`
core/inlines/code/double-backtick-escape7.3 x`y
core/inlines/emphasis/star-single7.4*em*
core/inlines/emphasis/star-double7.4**strong**
core/inlines/emphasis/underscore-word-boundary7.4snake_case_id
core/inlines/emphasis/nested7.4***both***
core/inlines/strikethrough/basic7.5~~del~~
core/inlines/link/inline7.6[x](url)
core/inlines/link/title7.6[x](url "title")
core/inlines/link/balanced-parens-in-url7.6[x](a(b)c)
core/inlines/image/basic7.7![alt](url)
core/inlines/autolink/https7.8<https://x>
core/inlines/autolink/email7.8<a@b.com>
core/inlines/line-break/hard-spaces7.9 \n
core/inlines/line-break/hard-backslash7.9\\\n
core/inlines/line-break/soft7.9single LF
core/inlines/entity/named7.11&amp;
core/inlines/escape/punctuation7.10\\*

D.3 Custom-element examples

Vector IDChapter §Construct
core/html/void/self-closing8.3.1<md-x/>
core/html/open-close/with-content8.3.2<md-x>content</md-x>
core/html/open-close/attrs8.3.2<md-x a="1" b="2">...</md-x>
core/html/whitelist/rejected8.2non-whitelisted tag → text
core/html/attrs/on-attr-rejected8.4.1onclick= dropped
core/html/attrs/data-mdflow-rejected8.4.1reserved namespace

D.4 Security examples

Every security vector listed in §13.4 is an example of the corresponding prohibition or filter. Highlights:

Vector IDChapter §Attack vector
security/url-filter/javascript-scheme10.3.1[x](javascript:alert(1))
security/url-filter/percent-encoded-javascript10.3.1.1[x](java%73cript:...)
security/url-filter/null-byte-evasion10.3.1.1java\0script:...
security/url-filter/whitespace-prefix10.3.1.1 javascript:...
security/url-filter/data-url10.3.1data:text/html,...
security/url-filter/blob-url10.3.1blob:...
security/url-filter/vbscript10.3.1vbscript:...
security/no-event-handlers/onclick10.2<md-x onclick=...>
security/no-event-handlers/onerror-camelcase10.2<md-x onError=...>
security/code-opacity/script-in-code10.2`<script>`

D.5 Streaming examples

Vector IDChapter §Scenario
core/streaming/paragraph/byte-split5.2paragraph across boundary
core/streaming/code-block/incomplete-fence5.3pending code block
core/streaming/table/row-by-row5.3, 6.8.1table growing over chunks
core/streaming/utf8/split-codepoint5.9chunk in middle of char
core/streaming/flush/no-closing-fence5.5code block finalized on flush

D.6 Interactive & event examples

Vector IDChapter §Scenario
core/html/interactive/state-preserved12.2.2re-render keeps state
core/html/interactive/identity-by-id12.2.3id attribute identity
core/html/events/progress-emit12.1.3<progress/> emits event
core/html/events/no-dom12.1.4event elements produce no DOM

D.7 Error-recovery examples

Vector IDChapter §Scenario
core/errors/plugin-tokenize-throws11.4.1region becomes Text
core/errors/plugin-render-throws11.4.2sentinel span emitted
core/errors/stream-continues-after-error11.6later tokens parse