Skip to content

Commit bc8ed87

Browse files
add: support for the <listing>, <plaintext> and <xmp> tags.
1 parent 430ef0f commit bc8ed87

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

publish.sh

100644100755
File mode changed.

src/inscriptis/css_profiles.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
# Handling of <pre>
6666
'pre': HtmlElement('pre', display=Display.block,
6767
whitespace=WhiteSpace.pre),
68+
'xmp': HtmlElement('xmp', display=Display.block,
69+
whitespace=WhiteSpace.pre),
70+
'listing': HtmlElement('listing', display=Display.block,
71+
whitespace=WhiteSpace.pre),
72+
'plaintext': HtmlElement('plaintext', display=Display.block,
73+
whitespace=WhiteSpace.pre),
6874
}
6975

7076
RELAXED_CSS_PROFILE = STRICT_CSS_PROFILE.copy()

0 commit comments

Comments
 (0)