Do not write the title as h1 if it is in the yaml header

In general, we try to follow the conventions in the note parsed over
whatever the default config.

Related to #214
This commit is contained in:
Vishesh Handa
2020-08-19 11:31:16 +02:00
parent 32f032204f
commit ada656c675
2 changed files with 35 additions and 0 deletions

View File

@ -148,6 +148,7 @@ class NoteSerializer implements NoteSerializerInterface {
note.title = emojiParser.emojify(title);
propsUsed.add(settings.titleKey);
settings.saveTitleAsH1 = false;
} else {
var startsWithH1 = false;
for (var line in LineSplitter.split(note.body)) {