aboutsummaryrefslogtreecommitdiffstats
path: root/root/articles
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-06 10:02:34 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-06 10:11:44 +0000
commit51afa1123d12239a3f14a43928d29321d940199d (patch)
tree708cda6d39372e3221636326a71e36657f0a1581 /root/articles
parentadd inspector (diff)
downloadmmm-51afa1123d12239a3f14a43928d29321d940199d.tar.gz
mmm-51afa1123d12239a3f14a43928d29321d940199d.zip
style inspector code
Diffstat (limited to 'root/articles')
-rw-r--r--root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon9
1 files changed, 1 insertions, 8 deletions
diff --git a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon
index 0d59c42..5619747 100644
--- a/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon
+++ b/root/articles/mmmfs/text$moonscript -> fn -> mmm$dom.moon
@@ -5,14 +5,7 @@
=>
html = require 'mmm.dom'
import article, h1, h2, h3, p, div, a, sup, ol, li, span, code, pre, br from html
-
- moon = if MODE == 'SERVER'
- (str) -> code (str\match '^ *(..-) *$'), class: 'hljs'
- else
- (str) ->
- result = window.hljs\highlight 'moonscript', (str\match '^ *(..-) *$'), true
- with code class: 'hljs'
- .innerHTML = result.value
+ import moon from (require 'mmm.highlighting').languages
article with _this = {}
append = (a) -> table.insert _this, a