mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
401 B
23 lines
401 B
const _ = require('lodash')
|
|
const cheerio = require('cheerio')
|
|
const uslug = require('uslug')
|
|
const pageHelper = require('../../../helpers/page')
|
|
const URL = require('url').URL
|
|
|
|
|
|
/* global WIKI */
|
|
|
|
module.exports = {
|
|
async render() {
|
|
let $ = cheerio.load(this.input, {
|
|
decodeEntities: true
|
|
})
|
|
|
|
if ($.root().children().length < 1) {
|
|
return ''
|
|
}
|
|
|
|
return $.html()
|
|
}
|
|
}
|