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