From: Arthur Date: Mon, 5 Dec 2016 10:18:59 +0000 (+0100) Subject: Merge pull request #702 from ArthurHoaro/feed-cdata X-Git-Tag: v0.8.1~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=bea80e43a3714663b0c32879f7bdf4fd19161b2e;hp=1d2cef8aefe62f93a71d43d9288a49d4b350484e;p=github%2Fshaarli%2FShaarli.git Merge pull request #702 from ArthurHoaro/feed-cdata Remove new line between content tag and CDATA in ATOM feed --- 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/). - Plugins: - Add an [Isso](https://posativ.org/isso/) plugin to enable user comments on permalinks - Allow defining init functions, e.g. for performing checks and error processing + - Add a Piwik plugin for analytics. + - Markdown: add warning notice regarding HTML rendering +- Meta tag to *not* send the referrer to external resources. ### Changed - Cleanup `{loop}` declarations in templates - Release archives now have the same structure as GitHub-generated archives: - archives contain a `Shaarli` directory, itself containing sources + dependencies - the tarball is now gzipped +- Plugins: + - Markdown: Parsedown library is now imported through Composer - Minor code cleanup: PHPDoc, spelling, unused variables, etc. - Docker: explicitly set the maximum file upload size to 10 MiB +- Tools: hide Firefox Social button when not in HTTPS +- Firefox Social: show Shaarli's title when shaaring using Firefox Social ### Fixed - Fix the server `` value in Atom/RSS feeds - Plugins: - Tools: only display parameter description when it exists - archive.org: do not propose archival of private notes + - Markdown: + - render links properly in code blocks + - bug regarding the `nomarkdown` tag + - W3C compliance - Use absolute URL for hashtags in RSS and ATOM feeds - Docker: specify the location of the favicon 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 { font-style: italic; } +strong { + font-weight: bold; +} + /* Buttons */ .bigbutton { background-color: #c0c0c0; @@ -1168,8 +1172,13 @@ ul.errors { } #pluginsadmin a { + color: #486D08; +} + +#pluginsadmin a.arrow { color: black; } + /* 404 page */ .error-container { 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 > Note: this is a special tag, so it won't be displayed in link list. +### HTML rendering + +Markdown support HTML tags. For example: + + > strongstrike + +Will render as: + +> strongstrike + +If you want to shaare HTML code, it is necessary to use inline code or code blocks. + +**If your shaared descriptions containing HTML tags before enabling the markdown plugin, +enabling it might break your page.** + +> Note: HTML tags such as script, iframe, etc. are disabled for security reasons. + ### Known issue #### 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 @@ -description="Render shaare description with Markdown syntax." +description="Render shaare description with Markdown syntax.
Warning: +If your shaared descriptions containing HTML tags before enabling the markdown plugin, +enabling it might break your page. +See the README." 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 @@ - ▲ - ▼