SemText

Reference · SemText · Prose & code

<sem-md>

SemText element

You write tables, lists, and other Markdown inside the element. Readers see a formatted table or list; machines get the Markdown back unchanged. Made for content that is easier to write as Markdown than as HTML.

A block written in Markdown that the browser turns into HTML. You write tables, lists, and other Markdown inside the element. Readers see a formatted table or list; machines get the Markdown back unchanged. Made for content that is easier to write as Markdown than as HTML. (optional): `rendered` (default) or `raw` — the initial mode. **Mutable presentation**: the toggle rewrites `data-view-as` at runtime (the authored bare attribute is left alone) and extraction ignores it (spec/extraction.md §5c). (optional): a short caption rendered in the chrome. (optional): comma flags from `toggle`, `copy`; default both, also when the attribute is present but empty. Unknown flags are ignored. per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2)

Example

sem-md — the authored block, rendered
Token lifetimes
Token Lifetime Rotates
access15 minno
refresh30 daysyes
| Token | Lifetime | Rotates | | :------ | -------: | :-----: | | access | 15 min | no | | refresh | 30 days | yes |
source
<sem-md id="m-lifetimes" label="Token lifetimes" controls="toggle,copy"> | Token | Lifetime | Rotates | | :------ | -------: | :-----: | | access | 15 min | no | | refresh | 30 days | yes | </sem-md>

Source: spec/schema/sem-md.md