chore: lint

This commit is contained in:
Aetherinox 2024-04-26 13:42:15 -07:00
parent e68a5a1bc1
commit 03540d66c6
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
2 changed files with 6 additions and 5 deletions

View File

@ -7,9 +7,9 @@
http-equiv="Content-Security-Policy"
content="
default-src 'self';
font-src data: https://fonts.gstatic.com;
font-src data:;
script-src 'self' 'unsafe-eval';
style-src 'self' blob: https://fonts.googleapis.com;
style-src 'self' blob:;
connect-src 'self' ws: https:;
child-src 'self' blob:;
worker-src 'self' blob:;

View File

@ -15,9 +15,10 @@ const whiteSpaceRegex = /<\/?p>|<br>|\r|\n/g;
class MdRenderer extends marked.Renderer {
checkbox(text) {
const checkLabel = ( text === true ? 'checked="true"' : '' )
return `<label class="task-list-label" contenteditable="false"><input class="checkbox" type="checkbox" ${checkLabel}></label>`
};
const checkLabel = text === true ? 'checked="true"' : '';
return `<label class="task-list-label" contenteditable="false"><input class="checkbox" type="checkbox" ${checkLabel}></label>`;
}
link(href, title, text) {
return super
.link(href, title, text)