Merge branch 'master' into develop

This commit is contained in:
Stefan Zermatten
2023-08-24 14:51:22 +02:00
3 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
<script lang="js"> <script lang="js">
import { marked } from 'marked'; import { marked } from 'marked';
import DOMPurify from 'dompurify';
export default { export default {
props: { props: {
@@ -20,7 +21,7 @@ export default {
computed: { computed: {
compiledMarkdown() { compiledMarkdown() {
if (!this.markdown) return; if (!this.markdown) return;
return marked(this.markdown); return DOMPurify.sanitize(marked(this.markdown));
}, },
}, },
} }

View File

@@ -4,7 +4,6 @@ import DOMPurify from 'dompurify';
marked.setOptions({ marked.setOptions({
breaks: true, breaks: true,
gfm: true, gfm: true,
sanitizer: DOMPurify.sanitize,
silent: true, silent: true,
smartLists: true, smartLists: true,
smartypants: true, smartypants: true,

View File

@@ -1,6 +1,6 @@
{ {
"name": "dicecloud", "name": "dicecloud",
"version": "2.0.55", "version": "2.0.57",
"description": "Unofficial Online Realtime D&D 5e App", "description": "Unofficial Online Realtime D&D 5e App",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {