From 1986e3f43008a157c52674cc391f2c6da3cfb262 Mon Sep 17 00:00:00 2001 From: julientaq <julien@coko.foundation> Date: Fri, 6 May 2022 11:48:48 +0200 Subject: [PATCH] fix list item --- .eleventy.js | 10 ++++++++++ src/articles/kotahiToJats.md | 20 ++++++++++---------- src/layouts/article-single.njk | 2 +- static/css/theme-coko/main.css | 4 +++- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 909a4cd..1a9aa08 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -22,6 +22,16 @@ module.exports = function (eleventyConfig) { return markdown.renderInline(rawString); }); + eleventyConfig.addFilter("wbrToUrl", function (string) { + const $ = cheerio.load(string); + console.log('fun', $('a').innerHTML) + return $.html(); + }); + + eleventyConfig.addFilter("markdowninline", function (rawString) { + return markdown.renderInline(rawString); + }); + eleventyConfig.addCollection("sortedByOrder", function (collectionApi) { return collectionApi.getAll() diff --git a/src/articles/kotahiToJats.md b/src/articles/kotahiToJats.md index f996c7d..4ae8b0e 100644 --- a/src/articles/kotahiToJats.md +++ b/src/articles/kotahiToJats.md @@ -280,21 +280,21 @@ All aspects of Kotahi are open source and liberally licensed (MIT). The Coko Fou ## Additional Useful links -- Coko Foundation’s website: [https://coko.foundation](https://coko.foundation&sa=D&source=editors&ust=1651750069439733&usg=AOvVaw20OK7Ll_rgpWU9PGtos_yG) -- The Kotahi site: [https://kotahi.community](https://kotahi.community&sa=D&source=editors&ust=1651750069440254&usg=AOvVaw0D0vE79O4ldjdZd7X-4SvQ) -- Kotahi’s Gitlab repository: [https://gitlab.coko.foundation/kotahi/kotahi](https://gitlab.coko.foundation/kotahi/kotahi&sa=D&source=editors&ust=1651750069440767&usg=AOvVaw2ofFiJS2HCjLOyKMkPZVzk) -- Typical Kotahi workflow explanation: [https://coko.foundation/articles/white-paper-kotahi-current-state.html](https://coko.foundation/articles/white-paper-kotahi-current-state.html&sa=D&source=editors&ust=1651750069441316&usg=AOvVaw3sqEHthIgvg6jHk630wJlg) -- Wendell Piez and Adam Hyde’s argument about using HTML as a source of truth: [https://coko.foundation/articles/a-typescript-for-the-web.html](https://coko.foundation/articles/a-typescript-for-the-web.html&sa=D&source=editors&ust=1651750069441973&usg=AOvVaw2sj4LrMjccroBcfbbvn4Rk) -- Wendell Piez, “Uphill to XML with XSLT, XProc … and HTML,†explaining the thinking behind xSweet: [https://www.balisage.net/Proceedings/vol20/html/Piez02/BalisageVol20-Piez02.html](https://www.balisage.net/Proceedings/vol20/html/Piez02/BalisageVol20-Piez02.html&sa=D&source=editors&ust=1651750069442593&usg=AOvVaw2xjLD5QSoxMQ19YVYto_iu) -- Wendell Piez, “HTML First?: Testing an alternative approach to producing JATS from arbitrary (unconstrained or "wild") .docx (WordML) format,†on early attempts to make JATS from HTML with xSweet: [https://www.ncbi.nlm.nih.gov/books/NBK425546/](https://www.ncbi.nlm.nih.gov/books/NBK425546/&sa=D&source=editors&ust=1651750069443101&usg=AOvVaw1jn5q6QjtPHLUs5k0RVYXw) -- Adam Hyde, “One Enormous Step at a Time – Now JATS,†explaining the different systems behind Kotahi: [https://www.adamhyde.net/one-enormous-step-at-a-time-now-jats/](https://www.adamhyde.net/one-enormous-step-at-a-time-now-jats/&sa=D&source=editors&ust=1651750069443604&usg=AOvVaw3MVQkMfqoh8aJhYQrAV6tp) -- Adam’s Hyde article about single-source publishing: [https://coko.foundation/articles/single-source-publishing.html](https://coko.foundation/articles/single-source-publishing.html&sa=D&source=editors&ust=1651750069444089&usg=AOvVaw0mLscqli4bPXEkpr96TtQJ) +- Coko Foundation’s website: [https://coko.foundation](https://coko.foundation) +- The Kotahi site: [https://kotahi.community](https://kotahi.community) +- Kotahi’s Gitlab repository: [https://gitlab.coko.foundation/kotahi/kotahi](https://gitlab.coko.foundation/kotahi/kotahi) +- Typical Kotahi workflow explanation: [https://coko.foundation/articles/white-paper-kotahi-current-state.html](https://coko.foundation/articles/white-paper-kotahi-current-state.html) +- Wendell Piez and Adam Hyde’s argument about using HTML as a source of truth: [https://coko.foundation/articles/a-typescript-for-the-web.html](https://coko.foundation/articles/a-typescript-for-the-web.html) +- Wendell Piez, “Uphill to XML with XSLT, XProc … and HTML,†explaining the thinking behind xSweet: [https://www.balisage.net/Proceedings/vol20/html/Piez02/BalisageVol20-Piez02.html](https://www.balisage.net/Proceedings/vol20/html/Piez02/BalisageVol20-Piez02.htm) +- Wendell Piez, “HTML First?: Testing an alternative approach to producing JATS from arbitrary (unconstrained or "wild") .docx (WordML) format,†on early attempts to make JATS from HTML with xSweet: [https://www.ncbi.nlm.nih.gov/books/NBK425546/](https://www.ncbi.nlm.nih.gov/books/NBK425546/) +- Adam Hyde, “One Enormous Step at a Time – Now JATS,†explaining the different systems behind Kotahi: [https://www.adamhyde.net/one-enormous-step-at-a-time-now-jats/](https://www.adamhyde.net/one-enormous-step-at-a-time-now-jats/) +- Adam’s Hyde article about single-source publishing: [https://coko.foundation/articles/single-source-publishing.html](https://coko.foundation/articles/single-source-publishing.html) ## Credits - Dan Visel wrote most of this article with edits by Adam Hyde and input from Ben Whitmore. Large parts of the article are quoted from prior articles written by Wendel Piez and Adam Hyde. The section on Single-Source Publishing is a direct copy from an earlier article on the topic by Adam Hyde. - Diagrams by Henrik van Leeuwen. Initial Aperture and PRC Workflow diagrams by Ryan Dix-Peek (Kotahi Project Manager). -- Christos Kokosias is the lead wax developer for Coko. Wax itself is built on the wonderful open source ProseMirror ([https://prosemirror.net/](https://prosemirror.net/&sa=D&source=editors&ust=1651750069445284&usg=AOvVaw2V7fSS892ew0jfuB7PMX6i)) framework. +- Christos Kokosias is the lead wax developer for Coko. Wax itself is built on the wonderful open source [ProseMirror](https://prosemirror.net/) framework. - Dan Visel has done most of the work on the Wax-JATS editor (sponsored by Amnet). - Ben Whitmore is the Coko lead dev for Kotahi. Prior to Ben the lead Kotahi developers for Coko were Giannis Kopanas and Jure Triglav. - Adam Hyde and Wendell Piez are the designers of the xSweet approach. Wendell Piez did most of the XSLT development for xSweet. diff --git a/src/layouts/article-single.njk b/src/layouts/article-single.njk index 0730a1d..57a0513 100644 --- a/src/layouts/article-single.njk +++ b/src/layouts/article-single.njk @@ -26,7 +26,7 @@ </video> {% endif %} - {{ content | safe }} + {{ content | wbrToUrl | safe }} </article> diff --git a/static/css/theme-coko/main.css b/static/css/theme-coko/main.css index 36989a8..f5fde40 100644 --- a/static/css/theme-coko/main.css +++ b/static/css/theme-coko/main.css @@ -858,6 +858,8 @@ article iframe { font-size: 0.9em; margin-bottom: 0.5em; } + .article-single { + } } .article-single main .post-content .customQuote { font-size: 0.9em; @@ -865,6 +867,6 @@ article iframe { padding-left: 3ch; } -li::marker { +.article-single main li::marker { content: "– "; } -- GitLab