diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 07:58:11 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-06 08:03:07 +0000 |
| commit | 18ecd4c9dc6b478761de62e173ec86b4ad724492 (patch) | |
| tree | 02650380349cbe701d3a02860e9ab2f98500e15c /root/articles | |
| parent | property browsing (diff) | |
| download | mmm-18ecd4c9dc6b478761de62e173ec86b4ad724492.tar.gz mmm-18ecd4c9dc6b478761de62e173ec86b4ad724492.zip | |
fix mmmfs article for now
Diffstat (limited to 'root/articles')
| -rw-r--r-- | root/articles/mmmfs/ignore -> text\$markdown.md (renamed from root/articles/mmmfs/text$markdown.md) | 0 | ||||
| -rw-r--r-- | root/articles/mmmfs/markdown/preview: text$markdown.md (renamed from root/articles/mmmfs/markdown/text$markdown.md) | 0 | ||||
| -rw-r--r-- | root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon | 42 |
3 files changed, 21 insertions, 21 deletions
diff --git a/root/articles/mmmfs/text$markdown.md b/root/articles/mmmfs/ignore -> text\$markdown.md index 1c1b4f9..1c1b4f9 100644 --- a/root/articles/mmmfs/text$markdown.md +++ b/root/articles/mmmfs/ignore -> text\$markdown.md diff --git a/root/articles/mmmfs/markdown/text$markdown.md b/root/articles/mmmfs/markdown/preview: text$markdown.md index 4b38ef2..4b38ef2 100644 --- a/root/articles/mmmfs/markdown/text$markdown.md +++ b/root/articles/mmmfs/markdown/preview: text$markdown.md diff --git a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon index 5d454a1..0d59c42 100644 --- a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon +++ b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon @@ -150,9 +150,9 @@ append pre moon [[ -- render a preview block preview = (title, content) -> div { -h3 title, style: { ... }, -content or span '(no renderable content)', style: { ... }, -style: { ... } + h3 title, style: { ... }, + content or span '(no renderable content)', style: { ... }, + style: { ... } } append div for child in *@children @@ -172,13 +172,13 @@ preview title, content append pre moon [[ Fileder { -'title: text/plain': "I'm not even five lines of markdown but i render myself!", -'preview: text/markdown': "See I have like + 'title: text/plain': "I'm not even five lines of markdown but i render myself!", + 'preview: text/markdown': "See I have like -- a list of things -- (two things) + - a list of things + - (two things) -and some bold **text** and `code tags` with me.", + and some bold **text** and `code tags` with me.", } ]] @@ -187,11 +187,11 @@ and some bold **text** and `code tags` with me.", append pre moon [[ { -inp: 'text/markdown', -out: 'mmm/dom', -transform: (md) -> - -- polymorphic client/serverside implementation here, - -- uses lua-discount on the server, marked.js on the client + inp: 'text/markdown', + out: 'mmm/dom', + transform: (md) -> + -- polymorphic client/serverside implementation here, + -- uses lua-discount on the server, marked.js on the client } ]] @@ -206,9 +206,9 @@ transform: (md) -> append pre moon [[ { -inp: 'fn -> (.+)', -out: '%1', -transform: (val, fileder) -> val fileder + inp: 'fn -> (.+)', + out: '%1', + transform: (val, fileder) -> val fileder } ]] @@ -224,11 +224,11 @@ transform: (val, fileder) -> val fileder append pre moon [[ Fileder { -'title: text/plain': "Hey I'm like a link to picture or smth", -'URL -> image/png': 'https://picsum.photos/200?random', -'preview: fn -> mmm/dom': => - import img from require 'mmm.dom' - img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type + 'title: text/plain': "Hey I'm like a link to picture or smth", + 'URL -> image/png': 'https://picsum.photos/200?random', + 'preview: fn -> mmm/dom': => + import img from require 'mmm.dom' + img src: @gett 'URL -> image/png' -- look for main content with 'URL to png' type } ]] |
