forked from reuseman/flashcards-obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add markdown testing file for inline and cloze
- Loading branch information
1 parent
5c662eb
commit 2d97210
Showing
2 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
cards-deck: Cloze | ||
--- | ||
|
||
# Cloze | ||
The **Cloze deck** must contain **4 cards** defined in the section [[#Must work ✔️]]. | ||
|
||
## Must work ✔️ | ||
|
||
This is a valid ==cloze== that exploits the ==Obsidian Highlight== syntax. | ||
|
||
The other mechanism is the {following one} with these parenthesis. | ||
|
||
Moreover, the {2:order} of the {1:cloze} support can vary. | ||
|
||
And of course {multiple syntax} can be ==mixed== together. | ||
|
||
## Must NOT work ❌ | ||
|
||
### Code blocks | ||
```java | ||
System.out.println("Hey this is not a {valid} one"); | ||
``` | ||
|
||
## Delimiters inside inline code blocks | ||
Suppose to have the following situation `==` where you talk about the equal operator of Haskell and then you talk again about it `==`. Then this must not be considered as a cloze card. | ||
|
||
### Math blocks | ||
$$-\frac{1}{12}$$ | ||
|
||
## Math inline | ||
This is not a good cloze $\frac{3}{2}$ |
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,34 @@ | ||
--- | ||
cards-deck: Inline | ||
--- | ||
|
||
# Inline | ||
#todo The **Inline deck** must contain **5 cards** defined in the section [[#Must work ✔️]]. | ||
|
||
## Must work ✔️ | ||
|
||
This is a valid::Inline card | ||
|
||
This is a valid :: inline card | ||
|
||
This is a valid:: inline card | ||
|
||
This is a valid ::inline card | ||
|
||
This is a valid:::inline reversed card | ||
|
||
## Must NOT work ❌ | ||
|
||
### Code blocks | ||
```java | ||
System.out.println("Hey this is not :: a valid inline card"); | ||
``` | ||
|
||
### Inline code blocks | ||
This is not `a valid :: inline card` | ||
|
||
### Math blocks | ||
This is not a good inline card. $$3::4$$ | ||
|
||
## Math inline blocks | ||
This is not a good inline $3::4$ card. |