This is an automated email from the git hooks/post-receive script. New change to branch markdown in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git at 2a3221f7 Use showdown so that markdown descriptions/comment are formatted This branch includes the following new commits: new 2a3221f7 Use showdown so that markdown descriptions/comment are formatted The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 2a3221f7d3d2a52ca7d789219c933a3f48cc7663 Author: jcouteau <couteau@codelutin.com> Date: Thu Nov 21 16:40:06 2019 +0100 Use showdown so that markdown descriptions/comment are formatted -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch markdown in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 2a3221f7d3d2a52ca7d789219c933a3f48cc7663 Author: jcouteau <couteau@codelutin.com> Date: Thu Nov 21 16:40:06 2019 +0100 Use showdown so that markdown descriptions/comment are formatted --- pollen-ui-riot-js/package.json | 3 ++- .../src/main/web/tag/components/MultiLineLabel.tag.html | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/package.json b/pollen-ui-riot-js/package.json index b396206e..071332e9 100644 --- a/pollen-ui-riot-js/package.json +++ b/pollen-ui-riot-js/package.json @@ -56,6 +56,7 @@ "remarkable": "^1.7.1", "riot": "^3.12.0", "riot-route": "^3.1.3", - "tooltip.js": "^1.3.0" + "tooltip.js": "^1.3.0", + "showdown": "^1.9.1" } } diff --git a/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html index f5679699..ff960b74 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/MultiLineLabel.tag.html @@ -23,6 +23,8 @@ <span ref="label"></span> <script> + import showdown from "showdown"; + this.on("mount", () => { let labelText; if (this.opts.label) { @@ -30,7 +32,9 @@ } else { labelText = ""; } - this.refs.label.innerText = labelText; + + var converter = new showdown.Converter(); + this.refs.label.insertAdjacentHTML('beforebegin', converter.makeHtml(labelText)); }); </script> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm