aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/misc
diff options
context:
space:
mode:
authorRoland Koebler <rk@simple-is-better.org>2019-03-21 14:53:06 +0100
committerLauris BH <lauris@nix.lv>2019-03-21 15:53:06 +0200
commit57ecf0978766138fc084a3f1e158278bfd0d5d34 (patch)
treea414a8e250b2dfe2464e375c992155d9fe4b2f02 /routers/api/v1/misc
parent6f2e1bd23ab7670e3bbc76d569b80007ca38af05 (diff)
downloadgitea-57ecf0978766138fc084a3f1e158278bfd0d5d34.tar.gz
gitea-57ecf0978766138fc084a3f1e158278bfd0d5d34.zip
Markdown: enable some more extensions (#6362)
* Markdown: enable some more extensions Improve Markdown-rendering by enabling some extensions: - enable definitions lists - enable footnotes - enable header-ids and automatically generate header-ids (for linking to README-sections or creating table-of-contents for larger READMEs) * Markdown: update and exted tests Update and add tests for additionally enabled Markdown-extensions.
Diffstat (limited to 'routers/api/v1/misc')
-rw-r--r--routers/api/v1/misc/markdown_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/misc/markdown_test.go b/routers/api/v1/misc/markdown_test.go
index 32d2f0730e..9de1f77f60 100644
--- a/routers/api/v1/misc/markdown_test.go
+++ b/routers/api/v1/misc/markdown_test.go
@@ -87,11 +87,11 @@ Here are some links to the most important topics. You can find the full list of
[[images/icon-bug.png]]
`,
// rendered
- `<h2>What is Wine Staging?</h2>
+ `<h2 id="what-is-wine-staging">What is Wine Staging?</h2>
<p><strong>Wine Staging</strong> on website <a href="http://wine-staging.com" rel="nofollow">wine-staging.com</a>.</p>
-<h2>Quick Links</h2>
+<h2 id="quick-links">Quick Links</h2>
<p>Here are some links to the most important topics. You can find the full list of pages at the sidebar.</p>