summaryrefslogtreecommitdiffstats
path: root/tests/test_renderers/fixtures/myst-config.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_renderers/fixtures/myst-config.txt')
-rw-r--r--tests/test_renderers/fixtures/myst-config.txt176
1 files changed, 176 insertions, 0 deletions
diff --git a/tests/test_renderers/fixtures/myst-config.txt b/tests/test_renderers/fixtures/myst-config.txt
new file mode 100644
index 0000000..668895a
--- /dev/null
+++ b/tests/test_renderers/fixtures/myst-config.txt
@@ -0,0 +1,176 @@
+[title-to-header] --myst-title-to-header="yes"
+.
+---
+title: "The title *nested syntax*"
+---
+
+# Other header
+.
+<document source="<string>">
+ <docinfo>
+ <field classes="title">
+ <field_name>
+ title
+ <field_body>
+ <paragraph>
+ <literal>
+ The title *nested syntax*
+ <section ids="the-title-nested-syntax" names="the\ title\ nested\ syntax">
+ <title>
+ The title
+ <emphasis>
+ nested syntax
+ <section ids="other-header" names="other\ header">
+ <title>
+ Other header
+.
+
+[linkify] --myst-enable-extensions=linkify
+.
+www.example.com
+.
+<document source="<string>">
+ <paragraph>
+ <reference refuri="http://www.example.com">
+ www.example.com
+.
+
+[gfm-strikethrough] --myst-gfm-only="yes"
+.
+~~strike~~
+.
+<document source="<string>">
+ <paragraph>
+ <system_message level="2" line="1" source="<string>" type="WARNING">
+ <paragraph>
+ Strikethrough is currently only supported in HTML output [myst.strikethrough]
+ <raw format="html" xml:space="preserve">
+ <s>
+ strike
+ <raw format="html" xml:space="preserve">
+ </s>
+
+<string>:1: (WARNING/2) Strikethrough is currently only supported in HTML output [myst.strikethrough]
+.
+
+[gfm-disallowed-html] --myst-gfm-only="yes"
+.
+<strong> <title> <style> <em>
+
+<blockquote>
+ <xmp> is disallowed. <XMP> is also disallowed.
+</blockquote>
+.
+<document source="<string>">
+ <paragraph>
+ <raw format="html" xml:space="preserve">
+ <strong>
+
+ <raw format="html" xml:space="preserve">
+ &lt;title>
+
+ <raw format="html" xml:space="preserve">
+ &lt;style>
+
+ <raw format="html" xml:space="preserve">
+ <em>
+ <raw format="html" xml:space="preserve">
+ <blockquote>
+ &lt;xmp> is disallowed. &lt;XMP> is also disallowed.
+ </blockquote>
+.
+
+[gfm-autolink] --myst-gfm-only="yes"
+.
+www.commonmark.org
+
+Visit www.commonmark.org/help for more information.
+
+www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=Markup+(business)))
+
+(www.google.com/search?q=Markup+(business))
+
+(www.google.com/search?q=Markup+(business)
+
+www.google.com/search?q=(business))+ok
+
+www.google.com/search?q=commonmark&hl=en
+
+www.google.com/search?q=commonmark&hl;
+
+www.commonmark.org/he<lp
+.
+<document source="<string>">
+ <paragraph>
+ <reference refuri="http://www.commonmark.org">
+ www.commonmark.org
+ <paragraph>
+ Visit
+ <reference refuri="http://www.commonmark.org/help">
+ www.commonmark.org/help
+ for more information.
+ <paragraph>
+ <reference refuri="http://www.google.com/search?q=Markup+(business)">
+ www.google.com/search?q=Markup+(business)
+ <paragraph>
+ <reference refuri="http://www.google.com/search?q=Markup+(business)">
+ www.google.com/search?q=Markup+(business)
+ ))
+ <paragraph>
+ (
+ <reference refuri="http://www.google.com/search?q=Markup+(business)">
+ www.google.com/search?q=Markup+(business)
+ )
+ <paragraph>
+ (
+ <reference refuri="http://www.google.com/search?q=Markup+(business)">
+ www.google.com/search?q=Markup+(business)
+ <paragraph>
+ <reference refuri="http://www.google.com/search?q=(business)">
+ www.google.com/search?q=(business)
+ )+ok
+ <paragraph>
+ <reference refuri="http://www.google.com/search?q=commonmark&amp;hl=en">
+ www.google.com/search?q=commonmark&hl=en
+ <paragraph>
+ <reference refuri="http://www.google.com/search?q=commonmark&amp;hl">
+ www.google.com/search?q=commonmark&hl
+ ;
+ <paragraph>
+ <reference refuri="http://www.commonmark.org/he">
+ www.commonmark.org/he
+ <lp
+.
+
+[attrs_image] --myst-enable-extensions=attrs_image
+.
+![a](b){#id .a width="100%" align=center height=20px}{.b}
+.
+<document source="<string>">
+ <paragraph>
+ <image align="center" alt="a" classes="a b" height="20px" ids="id" names="id" uri="b" width="100%">
+.
+
+[attrs_image_warnings] --myst-enable-extensions=attrs_image
+.
+![a](b){width=1x height=2x align=other }
+.
+<document source="<string>">
+ <paragraph>
+ <system_message level="2" line="1" source="<string>" type="WARNING">
+ <paragraph>
+ Invalid width value for image: '1x' [myst.image]
+ <system_message level="2" line="1" source="<string>" type="WARNING">
+ <paragraph>
+ Invalid height value for image: '2x' [myst.image]
+ <system_message level="2" line="1" source="<string>" type="WARNING">
+ <paragraph>
+ Invalid align value for image: 'other' [myst.image]
+ <image alt="a" uri="b">
+
+<string>:1: (WARNING/2) Invalid width value for image: '1x' [myst.image]
+<string>:1: (WARNING/2) Invalid height value for image: '2x' [myst.image]
+<string>:1: (WARNING/2) Invalid align value for image: 'other' [myst.image]
+.