Skip to content

Commit

Permalink
increased maximum tag nesting level of html preview
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Feb 9, 2017
1 parent e7eea81 commit c71dc4e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# QOwnNotes Changelog

## 17.02.6
- the maximum tag nesting level of the html preview was increased from 16 to 32
to allow more levels of list items than six
(for [Issue #473](https://github.com/pbek/QOwnNotes/issues/473))

## 17.02.5
- you can now show a custom action in the note text edit context menu
- for more information please take a look at the
Expand Down
2 changes: 1 addition & 1 deletion src/build_number.h
@@ -1 +1 @@
#define BUILD 313
#define BUILD 314
4 changes: 2 additions & 2 deletions src/entities/note.cpp
Expand Up @@ -1314,15 +1314,15 @@ bool Note::removeNoteFile() {
QString Note::toMarkdownHtml(QString notesPath, int maxImageWidth,
bool forExport, bool decrypt, bool base64Images) {
hoedown_renderer *renderer =
hoedown_html_renderer_new(HOEDOWN_HTML_USE_XHTML, 16);
hoedown_html_renderer_new(HOEDOWN_HTML_USE_XHTML, 32);

// we want to show quotes in the html, so we don't translate them into
// `<q>` tags
// HOEDOWN_EXT_MATH and HOEDOWN_EXT_MATH_EXPLICIT don't seem to do anything
hoedown_extensions extensions =
(hoedown_extensions) ((HOEDOWN_EXT_BLOCK | HOEDOWN_EXT_SPAN |
HOEDOWN_EXT_MATH_EXPLICIT) & ~HOEDOWN_EXT_QUOTE);
hoedown_document *document = hoedown_document_new(renderer, extensions, 16);
hoedown_document *document = hoedown_document_new(renderer, extensions, 32);

// get the decrypted note text (or the normal note text if there isn't any)
QString str = decrypt ? getDecryptedNoteText() : noteText;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
@@ -1 +1 @@
#define VERSION "17.02.5"
#define VERSION "17.02.6"

0 comments on commit c71dc4e

Please sign in to comment.