Skip to content

Commit

Permalink
test: update signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Aug 3, 2022
1 parent a557a49 commit 24e9f84
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 27 deletions.
20 changes: 10 additions & 10 deletions scripts/apidoc/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ export async function initMarkdownRenderer(): Promise<void> {
);
}

const htmlSanitizeOptions: sanitizeHtml.IOptions = {
allowedTags: ['a', 'code', 'div', 'li', 'span', 'p', 'pre', 'ul'],
allowedAttributes: {
a: ['href', 'target', 'rel'],
div: ['class'],
pre: ['v-pre'],
span: ['class'],
},
selfClosing: [],
};
// const htmlSanitizeOptions: sanitizeHtml.IOptions = {
// allowedTags: ['a', 'code', 'div', 'li', 'span', 'p', 'pre', 'ul'],
// allowedAttributes: {
// a: ['href', 'target', 'rel'],
// div: ['class'],
// pre: ['v-pre'],
// span: ['class'],
// },
// selfClosing: [],
// };

function mdToHtml(md: string): string {
const rawHtml = markdown.render(md);
Expand Down
Loading

0 comments on commit 24e9f84

Please sign in to comment.