From f820c3089e9a152f33f284e4fadfe6c03a5e3708 Mon Sep 17 00:00:00 2001 From: fabien0102 Date: Mon, 27 Nov 2017 17:30:16 +0100 Subject: [PATCH 1/2] Add a specific style for checked inputs --- browser/components/markdown.styl | 4 ++++ browser/lib/markdown.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/browser/components/markdown.styl b/browser/components/markdown.styl index ab6c4bc7..cb3449ec 100644 --- a/browser/components/markdown.styl +++ b/browser/components/markdown.styl @@ -77,6 +77,10 @@ body li label.taskListItem margin-left -2em + &.checked + font-style italic + text-decoration line-through + opacity 0.5 div.math-rendered text-align center .math-failed diff --git a/browser/lib/markdown.js b/browser/lib/markdown.js index fca0259d..164dd89e 100644 --- a/browser/lib/markdown.js +++ b/browser/lib/markdown.js @@ -109,7 +109,7 @@ md.block.ruler.at('paragraph', function (state, startLine/*, endLine */) { if (state.parentType === 'list') { const match = content.match(/^\[( |x)\] ?(.+)/i) if (match) { - content = `` + content = `` } } From 53b9630fa59428a2e4b84d9bab51aad60a9fdcbc Mon Sep 17 00:00:00 2001 From: fabien0102 Date: Tue, 28 Nov 2017 15:18:22 +0100 Subject: [PATCH 2/2] Remove italic style --- browser/components/markdown.styl | 1 - 1 file changed, 1 deletion(-) diff --git a/browser/components/markdown.styl b/browser/components/markdown.styl index cb3449ec..89bbf0ab 100644 --- a/browser/components/markdown.styl +++ b/browser/components/markdown.styl @@ -78,7 +78,6 @@ li label.taskListItem margin-left -2em &.checked - font-style italic text-decoration line-through opacity 0.5 div.math-rendered