diff options
author | Arthur <arthur@hoa.ro> | 2016-12-03 08:52:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-03 08:52:12 +0100 |
commit | 19b3930ff39384fef890fb8949792a07e73151ae (patch) | |
tree | bc386ea21e60b5d84b06919ef8e21d272f480ef6 /plugins/markdown | |
parent | 6781465fda8ad5dc3a37439446d4ff1100f1fd39 (diff) | |
parent | 3d8f5cf84b8baa4a212f5089633af7c640609b62 (diff) | |
download | Shaarli-19b3930ff39384fef890fb8949792a07e73151ae.tar.gz Shaarli-19b3930ff39384fef890fb8949792a07e73151ae.tar.zst Shaarli-19b3930ff39384fef890fb8949792a07e73151ae.zip |
Merge pull request #701 from ArthurHoaro/plugins/md-html-doc
Describe markdown HTML rendering and display a warning
Diffstat (limited to 'plugins/markdown')
-rw-r--r-- | plugins/markdown/README.md | 17 | ||||
-rw-r--r-- | plugins/markdown/markdown.meta | 5 |
2 files changed, 21 insertions, 1 deletions
diff --git a/plugins/markdown/README.md b/plugins/markdown/README.md index 196005e7..aafcf066 100644 --- a/plugins/markdown/README.md +++ b/plugins/markdown/README.md | |||
@@ -50,6 +50,23 @@ If the tag `nomarkdown` is set for a shaare, it won't be converted to Markdown s | |||
50 | 50 | ||
51 | > Note: this is a special tag, so it won't be displayed in link list. | 51 | > Note: this is a special tag, so it won't be displayed in link list. |
52 | 52 | ||
53 | ### HTML rendering | ||
54 | |||
55 | Markdown support HTML tags. For example: | ||
56 | |||
57 | > <strong>strong</strong><strike>strike</strike> | ||
58 | |||
59 | Will render as: | ||
60 | |||
61 | > <strong>strong</strong><strike>strike</strike> | ||
62 | |||
63 | If you want to shaare HTML code, it is necessary to use inline code or code blocks. | ||
64 | |||
65 | **If your shaared descriptions containing HTML tags before enabling the markdown plugin, | ||
66 | enabling it might break your page.** | ||
67 | |||
68 | > Note: HTML tags such as script, iframe, etc. are disabled for security reasons. | ||
69 | |||
53 | ### Known issue | 70 | ### Known issue |
54 | 71 | ||
55 | #### Redirector | 72 | #### Redirector |
diff --git a/plugins/markdown/markdown.meta b/plugins/markdown/markdown.meta index e3904ed8..8df2ed0b 100644 --- a/plugins/markdown/markdown.meta +++ b/plugins/markdown/markdown.meta | |||
@@ -1 +1,4 @@ | |||
1 | description="Render shaare description with Markdown syntax." | 1 | description="Render shaare description with Markdown syntax.<br><strong>Warning</strong>: |
2 | If your shaared descriptions containing HTML tags before enabling the markdown plugin, | ||
3 | enabling it might break your page. | ||
4 | See the <a href=\"https://github.com/shaarli/Shaarli/tree/master/plugins/markdown#html-rendering\">README</a>." | ||