mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
chore: switch out markdown-it for habitica-markdown
This commit is contained in:
@@ -53,13 +53,13 @@
|
|||||||
"gulp-uglify": "^1.4.2",
|
"gulp-uglify": "^1.4.2",
|
||||||
"gulp.spritesmith": "^4.1.0",
|
"gulp.spritesmith": "^4.1.0",
|
||||||
"icalendar": "lefnire/node-icalendar#e06da0e55901f0ba940dfadc42c158ed0b1fead9",
|
"icalendar": "lefnire/node-icalendar#e06da0e55901f0ba940dfadc42c158ed0b1fead9",
|
||||||
|
"habitica-markdown": "^1.3.0",
|
||||||
"image-size": "~0.3.2",
|
"image-size": "~0.3.2",
|
||||||
"in-app-purchase": "^1.1.6",
|
"in-app-purchase": "^1.1.6",
|
||||||
"jade": "~1.11.0",
|
"jade": "~1.11.0",
|
||||||
"js2xmlparser": "~1.0.0",
|
"js2xmlparser": "~1.0.0",
|
||||||
"lodash": "^3.10.1",
|
"lodash": "^3.10.1",
|
||||||
"lodash.setwith": "^4.2.0",
|
"lodash.setwith": "^4.2.0",
|
||||||
"markdown-it": "^6.0.1",
|
|
||||||
"merge-stream": "^1.0.0",
|
"merge-stream": "^1.0.0",
|
||||||
"method-override": "^2.3.5",
|
"method-override": "^2.3.5",
|
||||||
"moment": "^2.13.0",
|
"moment": "^2.13.0",
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import locals from '../../middlewares/locals';
|
import locals from '../../middlewares/locals';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import markdownIt from 'markdown-it';
|
import md from 'habitica-markdown';
|
||||||
|
|
||||||
const md = markdownIt({
|
|
||||||
html: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
let api = {};
|
let api = {};
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ block content
|
|||||||
- for heading, index in headings
|
- for heading, index in headings
|
||||||
a.h2.accordion.collapsed(ng-href='#' + heading, data-toggle='collapse')=env.t('faqQuestion' + index)
|
a.h2.accordion.collapsed(ng-href='#' + heading, data-toggle='collapse')=env.t('faqQuestion' + index)
|
||||||
.clearfix.collapse(id=heading)
|
.clearfix.collapse(id=heading)
|
||||||
!=md.render(env.t('webFaqAnswer' + index))
|
!=md.unsafeHTMLRender(env.t('webFaqAnswer' + index))
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
h3!=md.render(env.t('webFaqStillNeedHelp'))
|
h3!=md.unsafeHTMLRender(env.t('webFaqStillNeedHelp'))
|
||||||
|
|||||||
@@ -18,6 +18,6 @@ block content
|
|||||||
- for step in stepsNum
|
- for step in stepsNum
|
||||||
h3=env.t('step'+step)
|
h3=env.t('step'+step)
|
||||||
p
|
p
|
||||||
!=md.render(env.t('webStep'+step+'Text'))
|
!=md.unsafeHTMLRender(env.t('webStep'+step+'Text'))
|
||||||
hr
|
hr
|
||||||
!=md.render(env.t('overviewQuestions'))
|
!=md.unsafeHTMLRender(env.t('overviewQuestions'))
|
||||||
|
|||||||
Reference in New Issue
Block a user