diff options
| -rw-r--r-- | mmm/mmmfs/plugins/markdown.moon | 6 | ||||
| -rw-r--r-- | scss/_sidenotes.scss | 5 |
2 files changed, 11 insertions, 0 deletions
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 @@ -44,6 +44,12 @@ assert markdown, "no markdown implementation found" transform: (md) => "<div class=\"markdown\">#{markdown md}</div>" } { + inp: 'text/markdown%+sidenotes' + out: 'text/html+frag' + cost: 1 + transform: (md) => "<div class=\"markdown sidenote-container\">#{markdown md}</div>" + } + { inp: 'text/markdown%+span' out: 'text/html+frag' cost: 1 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; |
