Skip to content

Commit a249af1

Browse files
committed
Fix examples to match Djot spec
- Use attribute syntax for link titles (not inline quotes) - Remove :emoji: symbols (not a Djot feature) - Fix comment syntax to {% ... %} format
1 parent a8c77d2 commit a249af1

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

examples/advanced.djot

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ This was {-deleted-} from the document.
108108

109109
Combined: The {-old{=highlighted=}-} text was {+replaced+}.
110110

111-
## Symbols
112-
113-
Use colons for symbols: :heart: :star: :warning:
114-
115111
## Smart Punctuation
116112

117113
- Em dash --- like this
@@ -123,10 +119,8 @@ Use colons for symbols: :heart: :star: :warning:
123119

124120
This text is visible.
125121

126-
{% comment %}
127-
This text is a comment and will not appear in the output.
128-
It can span multiple lines.
129-
{% endcomment %}
122+
{% This is a comment and will not appear in the output.
123+
It can span multiple lines. %}
130124

131125
This text is also visible.
132126

examples/basics.djot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can combine them: *_strong and emphasized_* or _*emphasized and strong*_.
3434

3535
Here's an [inline link](https://djot.net).
3636

37-
Here's a link with a [title](https://djot.net "Djot Homepage").
37+
Here's a link with a [label](https://djot.net){title="Djot Homepage"}.
3838

3939
And here's a [reference link][djot].
4040

examples/complete-document.djot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ You can also style [individual phrases]{.highlight} within a paragraph.
106106

107107
### Task Tracking
108108

109+
- [ ] Convert existing Markdown files
109110
- [x] Learn Djot basics
110111
- [x] Install IDE plugin
111-
- [ ] Convert existing Markdown files
112112
- [ ] Write documentation in Djot
113113

114114
### Chemical Formulas

examples/lists.djot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ Mixed nesting:
5050

5151
## Task Lists
5252

53-
- [x] Completed task
54-
- [ ] Incomplete task
55-
- [x] Another completed task
56-
- [ ] Yet another task to do
53+
- [ ] Write documentation
54+
- [x] Create examples
55+
- [x] Test features
56+
- [ ] Release plugin
5757

5858
## Definition Lists
5959

0 commit comments

Comments
 (0)