Skip to content

Commit 63989e1

Browse files
committed
fix TestAPI_RenderGFM
1 parent d7c77a8 commit 63989e1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

routers/api/v1/misc/markup_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func TestAPI_RenderGFM(t *testing.T) {
115115
- [[Tips]]
116116
- Bezier widget (by @r-lyeh) https://github.com/ocornut/imgui/issues/786`,
117117
// rendered
118-
`<p>Uncyclo! Enjoy :)</p>
119-
<ul>
118+
`<p dir="auto">Uncyclo! Enjoy :)</p>
119+
<ul dir="auto">
120120
<li><a href="` + AppSubURL + `wiki/Links" rel="nofollow">Links, Language bindings, Engine bindings</a></li>
121121
<li><a href="` + AppSubURL + `wiki/Tips" rel="nofollow">Tips</a></li>
122122
<li>Bezier widget (by <a href="` + AppURL + `r-lyeh" rel="nofollow">@r-lyeh</a>) <a href="https://github.com/ocornut/imgui/issues/786" rel="nofollow">https://github.com/ocornut/imgui/issues/786</a></li>
@@ -125,12 +125,12 @@ func TestAPI_RenderGFM(t *testing.T) {
125125
// Guard wiki sidebar: special syntax
126126
`[[Guardfile-DSL / Configuring-Guard|Guardfile-DSL---Configuring-Guard]]`,
127127
// rendered
128-
`<p><a href="` + AppSubURL + `wiki/Guardfile-DSL---Configuring-Guard" rel="nofollow">Guardfile-DSL / Configuring-Guard</a></p>
128+
`<p dir="auto"><a href="` + AppSubURL + `wiki/Guardfile-DSL---Configuring-Guard" rel="nofollow">Guardfile-DSL / Configuring-Guard</a></p>
129129
`,
130130
// special syntax
131131
`[[Name|Link]]`,
132132
// rendered
133-
`<p><a href="` + AppSubURL + `wiki/Link" rel="nofollow">Name</a></p>
133+
`<p dir="auto"><a href="` + AppSubURL + `wiki/Link" rel="nofollow">Name</a></p>
134134
`,
135135
// empty
136136
``,
@@ -150,11 +150,11 @@ Here are some links to the most important topics. You can find the full list of
150150
[[images/icon-bug.png]]
151151
`,
152152
// rendered
153-
`<h2 id="user-content-what-is-wine-staging">What is Wine Staging?</h2>
154-
<p><strong>Wine Staging</strong> on website <a href="http://wine-staging.com" rel="nofollow">wine-staging.com</a>.</p>
155-
<h2 id="user-content-quick-links">Quick Links</h2>
156-
<p>Here are some links to the most important topics. You can find the full list of pages at the sidebar.</p>
157-
<p><a href="` + AppSubURL + `wiki/Configuration" rel="nofollow">Configuration</a>
153+
`<h2 id="user-content-what-is-wine-staging" dir="auto">What is Wine Staging?</h2>
154+
<p dir="auto"><strong>Wine Staging</strong> on website <a href="http://wine-staging.com" rel="nofollow">wine-staging.com</a>.</p>
155+
<h2 id="user-content-quick-links" dir="auto">Quick Links</h2>
156+
<p dir="auto">Here are some links to the most important topics. You can find the full list of pages at the sidebar.</p>
157+
<p dir="auto"><a href="` + AppSubURL + `wiki/Configuration" rel="nofollow">Configuration</a>
158158
<a href="` + AppSubURL + `wiki/raw/images/icon-bug.png" rel="nofollow"><img src="` + AppSubURL + `wiki/raw/images/icon-bug.png" title="icon-bug.png" alt="images/icon-bug.png"/></a></p>
159159
`,
160160
}
@@ -185,12 +185,12 @@ var simpleCases = []string{
185185
// Guard wiki sidebar: special syntax
186186
`[[Guardfile-DSL / Configuring-Guard|Guardfile-DSL---Configuring-Guard]]`,
187187
// rendered
188-
`<p>[[Guardfile-DSL / Configuring-Guard|Guardfile-DSL---Configuring-Guard]]</p>
188+
`<p dir="auto">[[Guardfile-DSL / Configuring-Guard|Guardfile-DSL---Configuring-Guard]]</p>
189189
`,
190190
// special syntax
191191
`[[Name|Link]]`,
192192
// rendered
193-
`<p>[[Name|Link]]</p>
193+
`<p dir="auto">[[Name|Link]]</p>
194194
`,
195195
// empty
196196
``,

0 commit comments

Comments
 (0)