diff --git a/browser/components/markdown.styl b/browser/components/markdown.styl index 4921b531d..61829bc42 100644 --- a/browser/components/markdown.styl +++ b/browser/components/markdown.styl @@ -363,7 +363,10 @@ admonition_types = { danger: {color: #c2185b, icon: "block"}, caution: {color: #ffa726, icon: "warning"}, error: {color: #d32f2f, icon: "error_outline"}, - attention: {color: #455a64, icon: "priority_high"} + question: {color: #64dd17, icon: "help_outline"}, + quote: {color: #9e9e9e, icon: "format_quote"}, + abstract: {color: #00b0ff, icon: "subject"}, + attention: {color: #455a64, icon: "priority_high"}, } for name, val in admonition_types diff --git a/browser/lib/markdown.js b/browser/lib/markdown.js index 57f981db2..4174deaed 100644 --- a/browser/lib/markdown.js +++ b/browser/lib/markdown.js @@ -124,7 +124,7 @@ class Markdown { slugify: require('./slugify') }) this.md.use(require('markdown-it-kbd')) - this.md.use(require('markdown-it-admonition'), {types: ['note', 'hint', 'attention', 'caution', 'danger', 'error']}) + this.md.use(require('markdown-it-admonition'), {types: ['note', 'hint', 'attention', 'caution', 'danger', 'error', 'quote', 'abstract', 'question']}) this.md.use(require('markdown-it-abbr')) this.md.use(require('markdown-it-sub')) this.md.use(require('markdown-it-sup')) diff --git a/webpack-production.config.js b/webpack-production.config.js index bcfb2a429..263d9a836 100644 --- a/webpack-production.config.js +++ b/webpack-production.config.js @@ -6,9 +6,13 @@ const NodeTargetPlugin = require('webpack/lib/node/NodeTargetPlugin') var config = Object.assign({}, skeleton, { module: { loaders: [ + { + test: /pdf(\.worker)?(\.min)?\.js\.map$/, + loader: 'raw-loader' + }, { test: /(\.js|\.jsx)?$/, - exclude: /(node_modules|bower_components)/, + exclude: [/(node_modules|bower_components)/, /pdf(\.worker)?(\.min)?\.js\.map$/], loader: 'babel' }, { diff --git a/webpack-skeleton.js b/webpack-skeleton.js index e4cc20fea..b0bc36081 100644 --- a/webpack-skeleton.js +++ b/webpack-skeleton.js @@ -30,6 +30,7 @@ var config = { ] }, externals: [ + 'pdf-js', 'prettier', 'node-ipc', 'electron',