From a02ae9cec3aec9f8781ab026239b639ffc1487fc Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 20 Dec 2019 15:06:33 +0100 Subject: add support for nested sidenotes --- mmm/mmmfs/plugins/markdown.moon | 6 ++++++ scss/_sidenotes.scss | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/mmm/mmmfs/plugins/markdown.moon b/mmm/mmmfs/plugins/markdown.moon index afa0307..35d7162 100644 --- a/mmm/mmmfs/plugins/markdown.moon +++ b/mmm/mmmfs/plugins/markdown.moon @@ -43,6 +43,12 @@ assert markdown, "no markdown implementation found" cost: 1 transform: (md) => "
#{markdown md}
" } + { + inp: 'text/markdown%+sidenotes' + out: 'text/html+frag' + cost: 1 + transform: (md) => "
#{markdown md}
" + } { inp: 'text/markdown%+span' out: 'text/html+frag' diff --git a/scss/_sidenotes.scss b/scss/_sidenotes.scss index 28b1494..c003496 100644 --- a/scss/_sidenotes.scss +++ b/scss/_sidenotes.scss @@ -7,6 +7,11 @@ $sidenote-width: 14rem; margin: auto; } + .sidenote-container & { + margin-right: initial; + margin: initial; + } + .sidenote { position: absolute; box-sizing: border-box; -- cgit v1.2.3