Commit f1f707759bedf844966883269ae5ce0b2d34391a
enable hightlight.js
mixmix committed on 11/25/2018, 7:12:44 AMParent: 2bb5c91108d1ef5bc4ec2b74e6556e058b2198c2
Files changed
app/styles/css/font-awesome.js | changed |
app/styles/css/highlight.js | added |
app/styles/mcss/markdown.mcss | changed |
app/styles/css/font-awesome.js | ||
---|---|---|
@@ -5,7 +5,7 @@ | ||
5 | 5 … | exports.gives = nest('styles.css') |
6 | 6 … | |
7 | 7 … | exports.create = function (api) { |
8 | 8 … | return nest('styles.css', (sofar = {}) => { |
9 | - return assign(sofar, { css: requireStyle('font-awesome') }) | |
9 … | + return assign(sofar, { fontAwesome: requireStyle('font-awesome') }) | |
10 | 10 … | }) |
11 | 11 … | } |
app/styles/css/highlight.js | ||
---|---|---|
@@ -1,0 +1,11 @@ | ||
1 … | +const nest = require('depnest') | |
2 … | +const requireStyle = require('require-style') | |
3 … | +const { assign } = Object | |
4 … | + | |
5 … | +exports.gives = nest('styles.css') | |
6 … | + | |
7 … | +exports.create = function (api) { | |
8 … | + return nest('styles.css', (sofar = {}) => { | |
9 … | + return assign(sofar, { highlightJs: requireStyle('highlight.js/styles/github.css') }) | |
10 … | + }) | |
11 … | +} |
app/styles/mcss/markdown.mcss | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 … | } |
28 | 28 … | |
29 | 29 … | pre { |
30 | 30 … | background-color: #f5f5f5 |
31 | - color: #c121dc | |
31 … | + /* color: #c121dc */ | |
32 | 32 … | padding: .3rem |
33 | 33 … | white-space: pre-wrap |
34 | 34 … | word-wrap: break-word |
35 | 35 … | |
@@ -106,8 +106,8 @@ | ||
106 | 106 … | } |
107 | 107 … | |
108 | 108 … | $code { |
109 | 109 … | background-color: #f5f5f5 |
110 | - color: #c121dc | |
110 … | + /* color: #c121dc */ | |
111 | 111 … | border: 1px solid #e6e6e6 |
112 | 112 … | border-radius: 2px |
113 | 113 … | } |
Built with git-ssb-web