research of a basics needs

pull/7304/head
grik 1 year ago
parent d1b4c8c407
commit 3c09058679

@ -312,8 +312,8 @@ $material-colors: (
),
'theme': (
'primary': #1976D2,
'secondary': #424242,
'primary': #048eb0,
'secondary': #ee7e00,
'accent': #82B1FF,
'error': #FF5252,
'info': #2196F3,

@ -685,7 +685,7 @@
display:inline-block;
vertical-align:top;
padding-top:0;
&:first-child {
width: 100%;
}

@ -0,0 +1,29 @@
key: automaticGlossary
title: Glossary
description: Basic HTML Parser
author: requarks.io
input: html
output: html
icon: mdi-language-html5
props:
absoluteLinks:
type: Boolean
default: false
title: Treat relative links as root absolute
hint: For example, a link to foo/bar on page xyz will render as /foo/bar instead of /xyz/foo/bar.
order: 1
openExternalLinkNewTab:
type: Boolean
default: false
title: Open external links in a new tab
hint: External links will have a _blank target attribute added automatically.
order: 2
relAttributeExternalLink:
type: String
default: noreferrer
title: Protect against XSS when opening _blank target links
hint: External links with _blank attribute will have an additional rel attribute.
order: 3
enum:
- noreferrer
- noopener

@ -0,0 +1,22 @@
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()
}
}
Loading…
Cancel
Save