mirror of https://github.com/keeweb/keeweb.git
chore: lint
This commit is contained in:
parent
e68a5a1bc1
commit
03540d66c6
|
@ -7,9 +7,9 @@
|
||||||
http-equiv="Content-Security-Policy"
|
http-equiv="Content-Security-Policy"
|
||||||
content="
|
content="
|
||||||
default-src 'self';
|
default-src 'self';
|
||||||
font-src data: https://fonts.gstatic.com;
|
font-src data:;
|
||||||
script-src 'self' 'unsafe-eval';
|
script-src 'self' 'unsafe-eval';
|
||||||
style-src 'self' blob: https://fonts.googleapis.com;
|
style-src 'self' blob:;
|
||||||
connect-src 'self' ws: https:;
|
connect-src 'self' ws: https:;
|
||||||
child-src 'self' blob:;
|
child-src 'self' blob:;
|
||||||
worker-src 'self' blob:;
|
worker-src 'self' blob:;
|
||||||
|
|
|
@ -15,9 +15,10 @@ const whiteSpaceRegex = /<\/?p>|<br>|\r|\n/g;
|
||||||
|
|
||||||
class MdRenderer extends marked.Renderer {
|
class MdRenderer extends marked.Renderer {
|
||||||
checkbox(text) {
|
checkbox(text) {
|
||||||
const checkLabel = ( text === true ? 'checked="true"' : '' )
|
const checkLabel = text === true ? 'checked="true"' : '';
|
||||||
return `<label class="task-list-label" contenteditable="false"><input class="checkbox" type="checkbox" ${checkLabel}></label>`
|
return `<label class="task-list-label" contenteditable="false"><input class="checkbox" type="checkbox" ${checkLabel}></label>`;
|
||||||
};
|
}
|
||||||
|
|
||||||
link(href, title, text) {
|
link(href, title, text) {
|
||||||
return super
|
return super
|
||||||
.link(href, title, text)
|
.link(href, title, text)
|
||||||
|
|
Loading…
Reference in New Issue