diff --git a/app/server/static/components/annotationMixin.js b/app/server/static/components/annotationMixin.js index b1c1d2dd..d194252f 100644 --- a/app/server/static/components/annotationMixin.js +++ b/app/server/static/components/annotationMixin.js @@ -273,7 +273,13 @@ export default { }, compiledMarkdown() { - return marked(this.guideline, { + const documentMetadata = this.documentMetadata; + + const guideline = documentMetadata && documentMetadata.guideline + ? documentMetadata.guideline + : this.guideline; + + return marked(guideline, { sanitize: true, }); },