1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-14 18:27:44 +02:00

All: Fixes #769: Disable META tags in Markdown viewers

This commit is contained in:
Laurent Cozic 2019-01-15 20:12:53 +00:00
parent 97d86825c2
commit 0c98573700

View File

@ -512,6 +512,9 @@ class MdToHtml {
return this.renderImageHtml_(before, src, after, options);
});
// To disable meta tags that would refresh the page - eg "<meta http-equiv="refresh" content="5; url=/">"
// https://github.com/laurent22/joplin/issues/769
renderedBody = renderedBody.replace(/<meta\s/, '&lt;meta ');
// https://necolas.github.io/normalize.css/
const normalizeCss = `