Build the themes
and vendor
folders, and create the markdown-viewer.zip
package:
# pick a release tag
git clone --depth 1 --branch firefox https://github.com/simov/markdown-viewer.git
# build
cd markdown-viewer/
I hereby claim:
To claim this, I am signing this object:
var compose = require('request-compose') | |
// DevTools -> Application -> Cookies | |
var token = '...' | |
var parse = (regex, string, map = (a) => a, result = [], match = regex.exec(string)) => | |
!match ? result : parse(regex, string, map, result.concat(map(match))) |
// current | |
Prism.languages.javascript = Prism.languages.extend('clike', { | |
'keyword': /\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/, | |
'number': /\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/, | |
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444) | |
'function': /[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i, | |
'operator': /-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/ | |
}); |
// https://github.com/mziccard/node-timsort/#stability | |
var t = require('assert') | |
// sorted by weight | |
var input = [ | |
{ height: 100, weight: 80 }, | |
{ height: 90, weight: 90 }, | |
{ height: 70, weight: 95 }, |
var express = require('express') | |
var serveIndex = require('serve-index') | |
var serveStatic = require('serve-static') | |
var app = express() | |
app.use(serveStatic('/home/s')) | |
app.use('/', serveIndex('/home/s', {'icons': true, view: 'details'})) | |
app.listen(8001) |
var fs = require('fs') | |
var path = require('path') | |
var cp = require('child_process') | |
if (!process.argv[2]) { | |
console.log('Specify directory to check') | |
process.exit() | |
} |
/*set filter*/ | |
html { | |
filter: invert(90%) hue-rotate(180deg); | |
background-color: rgb(25, 25, 25); | |
} | |
/*reset*/ | |
img, | |
.emoji, | |
.emoji-outer, |
// extract all headers | |
var headers = [] | |
function walk (nodes) { | |
nodes.forEach((node) => { | |
var sub = Array.from(node.childNodes) | |
if (sub.length) { | |
walk(sub) |