Skip to content

Commit 0476242

Browse files
authored
New Script Link Importer/Exporter/Converter (#276)
* New Script Link Importer/Exporter/Converter Script suggestion for [Ways to improve compatibility with other markdown editors #3225](pbek/QOwnNotes#3225). Closes #3225 * Update info.json Changed Version Number: to 26.1.5. * Update info.json Mention necesssary conversion step before importing is possible: "In Obsidian please use the plugin <a href='https://github.com/mnaoumov/obsidian-better-markdown-links'>Better markdown links</a> to first convert to standard markdown links instead of Wikilinks." * Delete link-importer-and-converter-for-obsidian-github-pandoc-markor-and-others/F1 directory Deleted Test files * Update link-importer-and-converter-for-obsidian-github-pandoc-markor-and-others.qml Fixed a bug, when cutting out Codeblocks as `markdown =` was missing and so it never rewrote the content in `markdown = markdown.replace(/(```[\s\S]*?```|`[^`]*`)/g, function (match) {` Also uncommented the debugging functions.
1 parent ce00c4d commit 0476242

File tree

2 files changed

+548
-0
lines changed

2 files changed

+548
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Link Importer and converter for Obsidian/Github/Pandoc/Markor and others",
3+
"identifier": "link-importer-and-converter-for-obsidian-github-pandoc-markor-and-others",
4+
"script": "link-importer-and-converter-for-obsidian-github-pandoc-markor-and-others.qml",
5+
"authors": [
6+
"@netlimpopo",
7+
"@gzgandalf"
8+
],
9+
"platforms": [
10+
"linux",
11+
"macos",
12+
"windows"
13+
],
14+
"version": "0.0.1",
15+
"minAppVersion": "26.1.5",
16+
"description": "<h2> Intro</h2><p>This script imports and exports links from other editors such as <strong>Obsidian/VS Code/Github/Markor/Pandoc</strong> into QOwnNotes and vice versa. It allows for quick switching between markdown editors. In Obsidian please use the plugin <a href='https://github.com/mnaoumov/obsidian-better-markdown-links'>Better markdown links</a> to first convert to standard markdown links instead of Wikilinks. Unfortunately markdown as a language is not as well defined as <i>orgmode</i> for instance. Especially heading Fragments and URL encoding of links differ quite significantly ([note](note.md#heading-fragment) vs. [note](note.md#Heading%20Fragment)). In practice, <strong>links to headings will break</strong> if one does not adapt the links to the specific needs of the editor. They might be readable by the editor, but renaming of notes / headings might break links silently, without you noticing.</p><h2>Usage</h2><p> Caution! Backup your data before you use this script as it might break all you links!</p><p>Simply copy files or folders into the QN Foldersystem. Then <strong>press the import/export button</strong> in the script menu, depending on which style you prefer. Done. For further info see <a href='https://github.com/pbek/QOwnNotes/issues/3225'>Ways to improve compatibility with other markdown editors</a>.</p>"
17+
18+
}
19+

0 commit comments

Comments
 (0)