git ssb

16+

Dominic / patchbay



Commit f1f707759bedf844966883269ae5ce0b2d34391a

enable hightlight.js

mixmix committed on 11/25/2018, 7:12:44 AM
Parent: 2bb5c91108d1ef5bc4ec2b74e6556e058b2198c2

Files changed

app/styles/css/font-awesome.jschanged
app/styles/css/highlight.jsadded
app/styles/mcss/markdown.mcsschanged
app/styles/css/font-awesome.jsView
@@ -5,7 +5,7 @@
55 exports.gives = nest('styles.css')
66
77 exports.create = function (api) {
88 return nest('styles.css', (sofar = {}) => {
9- return assign(sofar, { css: requireStyle('font-awesome') })
9 + return assign(sofar, { fontAwesome: requireStyle('font-awesome') })
1010 })
1111 }
app/styles/css/highlight.jsView
@@ -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.mcssView
@@ -27,9 +27,9 @@
2727 }
2828
2929 pre {
3030 background-color: #f5f5f5
31- color: #c121dc
31 + /* color: #c121dc */
3232 padding: .3rem
3333 white-space: pre-wrap
3434 word-wrap: break-word
3535
@@ -106,8 +106,8 @@
106106 }
107107
108108 $code {
109109 background-color: #f5f5f5
110- color: #c121dc
110 + /* color: #c121dc */
111111 border: 1px solid #e6e6e6
112112 border-radius: 2px
113113 }

Built with git-ssb-web