1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-05 22:57:29 +02:00

Added save icon, fixed search ordering bug and fixed html rendering bug

This commit is contained in:
Laurent Cozic
2017-07-31 18:19:58 +00:00
parent 229fc4ed2e
commit e5d4c649ad
4 changed files with 37 additions and 20 deletions

View File

@@ -134,7 +134,12 @@ class NoteBodyViewer extends Component {
return '[Image: ' + htmlentities(r.title) + '(' + htmlentities(r.mime) + ')]';
}
let html = body ? '<style>' + normalizeCss + "\n" + css + '</style>' + marked(body, { gfm: true, breaks: true, renderer: renderer }) : '';
let html = body ? '<style>' + normalizeCss + "\n" + css + '</style>' + marked(body, {
gfm: true,
breaks: true,
renderer: renderer,
sanitize: true,
}) : '';
let elementId = 1;
while (html.indexOf('°°JOP°') >= 0) {