-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desktop, Cli: Resolves #5224: Add Markdown + Front Matter exporter/im…
…porter (#5465)
- Loading branch information
Showing
25 changed files
with
1,127 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: ddd | ||
tags: | ||
- banana | ||
- banana | ||
- banana | ||
--- | ||
|
||
And a link to note [full](./full.md), and link to the [same note](./full.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Test Note Title | ||
updated: 2019-05-01 16:54 | ||
created: 2019-05-01 16:54 | ||
Source: https://joplinapp.org | ||
author: Joplin | ||
latitude: 37.084021 | ||
longitude: -94.51350100 | ||
altitude: 0.0000 | ||
Completed?: false | ||
due: 2021-08-22 00:00 | ||
tags: | ||
- Joplin | ||
- nOte | ||
- pencil | ||
--- | ||
|
||
This is the note body |
6 changes: 6 additions & 0 deletions
6
packages/app-cli/tests/support/test_notes/yaml/inline_tags.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
Title: Inline Tags | ||
Tags: [inline, tag] | ||
--- | ||
|
||
Body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: norm | ||
tags: | ||
- tag1 | ||
- tag2 | ||
- tag3 | ||
--- | ||
|
||
note body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 001 | ||
--- | ||
|
||
note body |
20 changes: 20 additions & 0 deletions
20
packages/app-cli/tests/support/test_notes/yaml/r-markdown.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: "YAML metadata for R Markdown with examples" | ||
subtitle: "YAML header" | ||
author: Hao Liang | ||
date: "2021-06-10" | ||
output: | ||
md_document: | ||
toc: yes | ||
toc_depth: 2 | ||
abstract: YAML is a human-readable and easy to write language to define data structures. | ||
keywords: ["YAML", "Rmd"] | ||
subject: Medicine | ||
description: Rmd makes it possible to use a YAML header to specify certain parameters right at the beginning of the document. | ||
category: | ||
- Rmd | ||
- Medicine | ||
lang: "en-US" | ||
--- | ||
|
||
Example taken from https://github.com/hao203/rmarkdown-YAML |
10 changes: 10 additions & 0 deletions
10
packages/app-cli/tests/support/test_notes/yaml/r-markdown_author.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Distill for R Markdown" | ||
author: | ||
- name: "JJ Allaire" | ||
url: https://github.com/jjallaire | ||
affiliation: RStudio | ||
affiliation_url: https://www.rstudio.com | ||
--- | ||
|
||
Example taken from https://github.com/hao203/rmarkdown-YAML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Date | ||
created: 2017-01-01 | ||
updated: 2021-01-01 | ||
--- | ||
|
||
I hope the dates are imported correctly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: xxx | ||
--- | ||
|
||
--- | ||
author: xxx | ||
--- | ||
|
||
note body |
12 changes: 12 additions & 0 deletions
12
packages/app-cli/tests/support/test_notes/yaml/title_newline.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
Title: |- | ||
First | ||
Second | ||
Updated: 28/09/2021 20:57 | ||
Created: 28/09/2021 20:57 | ||
Latitude: 0.00000000 | ||
Longitude: 0.00000000 | ||
Altitude: 0.0000 | ||
--- | ||
|
||
This note has a newline in the title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
Title: Unquoted | ||
Longitude: -94.51350100 | ||
Completed?: No | ||
DUE: 2022-04-04 13:00 | ||
--- | ||
|
||
note body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Test Note Title | ||
updated: 2019-05-01T16:54:00Z | ||
created: 2019-05-01 16:54-07:00 | ||
--- | ||
|
||
This is the note body |
Oops, something went wrong.