Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Strip metadata added to md files from Notable etc.#5

Open
taixzo wants to merge 1 commit into
fuchsmich:masterfrom
taixzo:metadata_hiding
Open

Strip metadata added to md files from Notable etc.#5
taixzo wants to merge 1 commit into
fuchsmich:masterfrom
taixzo:metadata_hiding

Conversation

@taixzo
Copy link
Copy Markdown

@taixzo taixzo commented Jan 20, 2020

Notable creates metadata tags at the top of its files in this format:

---
tags: [Tags]
title: Note title
created: '2019-12-20T00:00:00.000Z'
modified: '2020-01-20T00:00:00.000Z'
---

This patch removes that metadata from the rendered markdown, to allow Notizen.md interoperability with Notable. It should leave pretty much everything else unchanged, as in standard Markdown "---" would be a heading level 2 marker or horizontal rule, and would not appear on the first line.

Notable creates metadata tags at the top of its files in this format: 

    ---
    tags: [Tags]
    title: Note title
    created: '2019-12-20T00:00:00.000Z'
    modified: '2020-01-20T00:00:00.000Z'
    ---

This patch removes that metadata from the rendered markdown. It should leave pretty much everything else unchanged, as in standard Markdown "---" would be a heading level 2 marker or horizontal rule, and would not appear on the first line.
@fuchsmich
Copy link
Copy Markdown
Owner

Sorry, I didn't notice this commit! No idea how this happend.
Stirpping the data should be done in qml/js not in python.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants