Skip to content

Commit 1e00106

Browse files
committed
Merge branch 'develop' into feature/markdownlint
2 parents d7854cd + dc29b2e commit 1e00106

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

app.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
"logo": "https://github.com/hackmdio/codimd/raw/master/public/codimd-icon-1024.png",
1212
"success_url": "/",
1313
"env": {
14-
"BUILD_ASSETS": {
15-
"description": "Our build script variable",
16-
"value": "true"
17-
},
1814
"NPM_CONFIG_PRODUCTION": {
1915
"description": "Let npm also install development build tool",
2016
"value": "false"

bin/heroku

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
if [ "$BUILD_ASSETS" = true ]; then
5+
if [ ! -z "$DYNO" ]; then
66
# setup config files
77
cat << EOF > .sequelizerc
88
var path = require('path');

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"cookie-parser": "~1.4.4",
5656
"deep-freeze": "~0.0.1",
5757
"ejs": "~2.6.2",
58-
"emojify.js": "~1.1.0",
5958
"express": "~4.17.1",
6059
"express-session": "~1.16.2",
6160
"file-saver": "~2.0.2",
@@ -152,6 +151,7 @@
152151
"xss": "~1.0.6"
153152
},
154153
"devDependencies": {
154+
"@hackmd/emojify.js": "^2.1.0",
155155
"acorn": "~6.1.1",
156156
"babel-core": "~6.26.3",
157157
"babel-loader": "~7.1.4",
@@ -171,6 +171,7 @@
171171
"jsonlint": "~1.6.2",
172172
"less": "~3.9.0",
173173
"less-loader": "~4.1.0",
174+
"markdown-it-ruby": "^0.1.1",
174175
"mini-css-extract-plugin": "~0.4.1",
175176
"mocha": "~5.2.0",
176177
"mock-require": "~3.0.3",

public/docs/features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ Subscript: H~2~O
435435

436436
==Marked text==
437437

438+
{ruby base|rubytext}
438439

439440
### Blockquotes
440441

public/js/extra.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ md.use(require('markdown-it-mathjax')({
10011001
afterDisplayMath: '\\]</span>'
10021002
}))
10031003
md.use(require('markdown-it-imsize'))
1004+
md.use(require('markdown-it-ruby'))
10041005

10051006
md.use(require('markdown-it-emoji'), {
10061007
shortcuts: {}

public/js/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ whiteList['style'] = []
2020
// allow kbd tag
2121
whiteList['kbd'] = []
2222
// allow ifram tag with some safe attributes
23-
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'sandbox', 'src', 'width', 'height']
23+
whiteList['iframe'] = ['allowfullscreen', 'name', 'referrerpolicy', 'src', 'width', 'height']
2424
// allow summary tag
2525
whiteList['summary'] = []
2626
// allow ruby tag

webpack.common.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module.exports = {
139139
to: 'MathJax/'
140140
},
141141
{
142-
context: path.join(__dirname, 'node_modules/emojify.js'),
142+
context: path.join(__dirname, 'node_modules/@hackmd/emojify.js'),
143143
from: {
144144
glob: 'dist/**/*',
145145
dot: false
@@ -249,7 +249,7 @@ module.exports = {
249249
'expose-loader?moment!moment',
250250
'script-loader!handlebars',
251251
'expose-loader?hljs!highlight.js',
252-
'expose-loader?emojify!emojify.js',
252+
'emojify.js',
253253
'script-loader!gist-embed',
254254
'script-loader!codemirror',
255255
'script-loader!inlineAttachment',
@@ -293,7 +293,7 @@ module.exports = {
293293
'expose-loader?moment!moment',
294294
'script-loader!handlebars',
295295
'expose-loader?hljs!highlight.js',
296-
'expose-loader?emojify!emojify.js',
296+
'emojify.js',
297297
'script-loader!gist-embed',
298298
'flowchart.js',
299299
'imports-loader?Raphael=raphael!js-sequence-diagrams',
@@ -334,7 +334,7 @@ module.exports = {
334334
'expose-loader?moment!moment',
335335
'script-loader!handlebars',
336336
'expose-loader?hljs!highlight.js',
337-
'expose-loader?emojify!emojify.js',
337+
'emojify.js',
338338
'script-loader!gist-embed',
339339
'flowchart.js',
340340
'imports-loader?Raphael=raphael!js-sequence-diagrams',
@@ -379,6 +379,7 @@ module.exports = {
379379
vega: path.join(__dirname, 'node_modules/vega/build/vega.min.js'),
380380
'vega-lite': path.join(__dirname, 'node_modules/vega-lite/build/vega-lite.min.js'),
381381
'vega-embed': path.join(__dirname, 'node_modules/vega-embed/build/vega-embed.min.js'),
382+
'emojify.js': path.join(__dirname, 'node_modules/@hackmd/emojify.js/dist/js/emojify-browser.min.js'),
382383
'markdown-it': path.join(__dirname, 'node_modules/markdown-it/dist/markdown-it.js')
383384
}
384385
},

0 commit comments

Comments
 (0)