mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 12:43:48 -04:00
(profile) allow inline markdown - optimisation, consistency
This commit is contained in:
parent
4ed10398e1
commit
16b0004237
@ -115,7 +115,9 @@
|
||||
|
||||
<div class="row">
|
||||
<div v-for="column in profile.words" v-if="column.values.length" class="col-6 col-lg-3">
|
||||
<h4 v-if="column.header" class="h6">{{ column.header }}</h4>
|
||||
<h4 v-if="column.header" class="h6">
|
||||
<Spelling :text="column.header" markdown/>
|
||||
</h4>
|
||||
|
||||
<ExpandableList :values="column.values" :limit="16" class="list-unstyled" :static="static" :expand="expandLinks">
|
||||
<template v-slot="s">
|
||||
|
@ -3,12 +3,13 @@ import sub from "markdown-it-sub";
|
||||
import sup from "markdown-it-sup";
|
||||
import mark from "markdown-it-mark";
|
||||
|
||||
export const safeInlineMarkdown = (text) => markdownit('zero')
|
||||
const md = markdownit('zero')
|
||||
.enable([
|
||||
'emphasis', 'strikethrough', 'backticks',
|
||||
'escape', 'entity',
|
||||
])
|
||||
.use(sub)
|
||||
.use(sup)
|
||||
.use(mark)
|
||||
.renderInline(text);
|
||||
.use(mark);
|
||||
|
||||
export const safeInlineMarkdown = (text) => md.renderInline(text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user