aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md11
-rw-r--r--inc/shaarli.css9
-rw-r--r--plugins/markdown/README.md17
-rw-r--r--plugins/markdown/markdown.meta5
-rw-r--r--tpl/pluginsadmin.html4
5 files changed, 43 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5eeb521a..ffda8a1b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,20 +13,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13- Plugins: 13- Plugins:
14 - Add an [Isso](https://posativ.org/isso/) plugin to enable user comments on permalinks 14 - Add an [Isso](https://posativ.org/isso/) plugin to enable user comments on permalinks
15 - Allow defining init functions, e.g. for performing checks and error processing 15 - Allow defining init functions, e.g. for performing checks and error processing
16 - Add a Piwik plugin for analytics.
17 - Markdown: add warning notice regarding HTML rendering
18- Meta tag to *not* send the referrer to external resources.
16 19
17### Changed 20### Changed
18- Cleanup `{loop}` declarations in templates 21- Cleanup `{loop}` declarations in templates
19- Release archives now have the same structure as GitHub-generated archives: 22- Release archives now have the same structure as GitHub-generated archives:
20 - archives contain a `Shaarli` directory, itself containing sources + dependencies 23 - archives contain a `Shaarli` directory, itself containing sources + dependencies
21 - the tarball is now gzipped 24 - the tarball is now gzipped
25- Plugins:
26 - Markdown: Parsedown library is now imported through Composer
22- Minor code cleanup: PHPDoc, spelling, unused variables, etc. 27- Minor code cleanup: PHPDoc, spelling, unused variables, etc.
23- Docker: explicitly set the maximum file upload size to 10 MiB 28- Docker: explicitly set the maximum file upload size to 10 MiB
29- Tools: hide Firefox Social button when not in HTTPS
30- Firefox Social: show Shaarli's title when shaaring using Firefox Social
24 31
25### Fixed 32### Fixed
26- Fix the server `<self>` value in Atom/RSS feeds 33- Fix the server `<self>` value in Atom/RSS feeds
27- Plugins: 34- Plugins:
28 - Tools: only display parameter description when it exists 35 - Tools: only display parameter description when it exists
29 - archive.org: do not propose archival of private notes 36 - archive.org: do not propose archival of private notes
37 - Markdown:
38 - render links properly in code blocks
39 - bug regarding the `nomarkdown` tag
40 - W3C compliance
30- Use absolute URL for hashtags in RSS and ATOM feeds 41- Use absolute URL for hashtags in RSS and ATOM feeds
31- Docker: specify the location of the favicon 42- Docker: specify the location of the favicon
32 43
diff --git a/inc/shaarli.css b/inc/shaarli.css
index 5808320c..a24d4b7c 100644
--- a/inc/shaarli.css
+++ b/inc/shaarli.css
@@ -37,6 +37,10 @@ em {
37 font-style: italic; 37 font-style: italic;
38} 38}
39 39
40strong {
41 font-weight: bold;
42}
43
40/* Buttons */ 44/* Buttons */
41.bigbutton { 45.bigbutton {
42 background-color: #c0c0c0; 46 background-color: #c0c0c0;
@@ -1168,8 +1172,13 @@ ul.errors {
1168} 1172}
1169 1173
1170#pluginsadmin a { 1174#pluginsadmin a {
1175 color: #486D08;
1176}
1177
1178#pluginsadmin a.arrow {
1171 color: black; 1179 color: black;
1172} 1180}
1181
1173/* 404 page */ 1182/* 404 page */
1174.error-container { 1183.error-container {
1175 1184
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
55Markdown support HTML tags. For example:
56
57 > <strong>strong</strong><strike>strike</strike>
58
59Will render as:
60
61> <strong>strong</strong><strike>strike</strike>
62
63If 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,
66enabling 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 @@
1description="Render shaare description with Markdown syntax." 1description="Render shaare description with Markdown syntax.<br><strong>Warning</strong>:
2If your shaared descriptions containing HTML tags before enabling the markdown plugin,
3enabling it might break your page.
4See the <a href=\"https://github.com/shaarli/Shaarli/tree/master/plugins/markdown#html-rendering\">README</a>."
diff --git a/tpl/pluginsadmin.html b/tpl/pluginsadmin.html
index 672f4993..ead1734e 100644
--- a/tpl/pluginsadmin.html
+++ b/tpl/pluginsadmin.html
@@ -38,11 +38,11 @@
38 <tr data-line="{$key}" data-order="{$counter}"> 38 <tr data-line="{$key}" data-order="{$counter}">
39 <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td> 39 <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td>
40 <td class="center"> 40 <td class="center">
41 <a href="#" 41 <a href="#" class="arrow"
42 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));"> 42 onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));">
43 43
44 </a> 44 </a>
45 <a href="#" 45 <a href="#" class="arrow"
46 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));"> 46 onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));">
47 47
48 </a> 48 </a>