CTAN-Markdown: Inline HTML
Im Allgemeinen wird inline HTML bereinigt und das Ergebnis zur Ausgabe weiter gereicht,
abc <b>def</b> ghi
abc def ghi
Diese Bereinigung bedeutet, dass nur erlaubte HTML-Tags und erlaubte Tag-Parameter durchgelassen werden. Verbotene HTML-Tags werden gelöscht. Unbekannte HTML-Tags werden als Text dargestellt, das heißt, dass das öffnende < und das schließende > in HTML-Entitäten übersetzt werden.
abc <bx>def</bx> ghi
abc <bx>def</bx> ghi
Nicht erlaubte Tag-parameter werden unterdrückt.
Verbotene tags werden entweder einschießlich oder ausschließlich des enthaltenen Inhalts unterdrückt.
Die folgende Liste enthält die erlaubten Tags und Attribute:
| Tag | Erlaubte Attribute |
|---|---|
| a | class, id, style, name, href, title |
| abbr | class, id, style |
| acronym | class, id, style |
| address | class, id, style |
| area | class, id, style |
| b | class, id, style |
| bdo | class, id, style |
| big | class, id, style |
| blockquote | class, id, style |
| br | class, id, style |
| caption | class, id, style |
| center | class, id, style |
| cite | class, id, style |
| code | class, id, style |
| col | class, id, style |
| colgroup | class, id, style |
| dd | class, id, style |
| del | class, id, style |
| dfn | class, id, style |
| dir | class, id, style |
| div | class, id, style, align |
| dl | class, id, style |
| dt | class, id, style |
| em | class, id, style |
| font | class, id, style, color, face, size |
| h1 | class, id, style |
| h2 | class, id, style |
| h3 | class, id, style |
| h4 | class, id, style |
| h5 | class, id, style |
| h6 | class, id, style |
| hr | class, id, style |
| i | class, id, style |
| img | class, id, style, src, width, height, alt, title |
| ins | class, id, style |
| isindex | class, id, style |
| kbd | class, id, style |
| legend | class, id, style |
| li | class, id, style |
| map | class, id, style |
| noframes | class, id, style |
| noscript | class, id, style |
| ol | class, id, style |
| optgroup | class, id, style |
| p | class, id, style, align |
| pre | class, id, style |
| q | class, id, style |
| s | class, id, style |
| samp | class, id, style |
| small | class, id, style |
| span | class, id, style |
| strike | class, id, style |
| strong | class, id, style |
| sub | class, id, style |
| sup | class, id, style |
| table | class, id, style |
| tbody | class, id, style |
| td | class, id, style, align |
| tfoot | class, id, style |
| th | class, id, style, align |
| thead | class, id, style |
| tr | class, id, style |
| tt | class, id, style |
| u | class, id, style |
| ul | class, id, style |
| var | class, id, style |
- Anmerkung:
- Im Gegensatz zu GFM sind die Tabellen-Tags nicht verboten.
Die folgende Liste enthält die verbotenen Tags und was dadurch unterdrückt wird:
| Tag | Unterdrückt |
|---|---|
| !DOCTYPE | lösche Tag |
| applet | ignoriere Inhalt |
| base | lösche Tag |
| basefont | lösche Tag |
| body | lösche Tag |
| button | lösche Tag |
| fieldset | lösche Tag |
| form | lösche Tag |
| frame | ignoriere Inhalt |
| frameset | ignoriere Inhalt |
| head | ignoriere Inhalt |
| html | lösche Tag |
| iframe | ignoriere Inhalt |
| input | lösche Tag |
| label | lösche Tag |
| link | lösche Tag |
| menu | lösche Tag |
| meta | lösche Tag |
| object | ignoriere Inhalt |
| option | lösche Tag |
| param | lösche Tag |
| script | ignoriere Inhalt |
| select | lösche Tag |
| style | ignoriere Inhalt |
| textarea | lösche Tag |
| title | ignoriere Inhalt |
Wie amn sieht, werden die „gefährlichen“ JavaScript-Tags und -Attribute herausgefiltert.
CTAN-Markdown
- Absätze
- Stile
- Abschnitte
- Ungeordnete Listen
- Nummerierte Listen
- Zitate
- Code-Blöcke
- Tabellen
- Links
- Bilder
- Horizontal Linien
- Inline HTML
- Logos
CTAN-Markdown-Tester
Das Ergebnis, das aus Makrkdown entsteht, kann interaktiv mit unserem
Markdown-Tester
ausprobiert werden.