summaryrefslogtreecommitdiffstats
path: root/tests/test_renderers/fixtures/myst-config.txt
blob: 668895a236e008e5aa66d7c7f56e87c28fea062a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
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]
.