Skip to content

Commit

Permalink
Add characters significance document and new syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ReMinoer committed Sep 9, 2019
1 parent 1954e03 commit d30dbb1
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 2 deletions.
59 changes: 59 additions & 0 deletions characters.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
- | Enumeration

1 | Position
1- | Position + Enumeration = Ordered item

> | Projection
-> | Enumeration + Projection = Structural item

o/x | True/False
o- | True + Enumeration = Validated item
x- | False + Enumeration = Terminated item

< | Structuration
<> | Structuration + Projection = Block

<<>>| Block of Block = Multi-line block
<-> | Block + Enumeration = Title

* | Raising
/ | Emphazing
" | Quoting
# | Ignore

<*> | Raising + Block = Important block
</> | Emphazing + Block = Italic block
<"> | Quoting + Block = Quote block
<#> | Ignore + Block = Obsolete block

[] | Selection

*[] | Raising + Selection = Bold text
/[] | Emphazing + Selection = Italic text
"[] | Quoting + Selection = Quoted text
#[] | Ignore + Selection = Obsolete text

[]> | Selection + Projection = External link
[]< | Selection + Projection (reversed) = Direct link
[]* | Selection + Raising (after) = Note link
[]1 | Selection + Position = Referenced note link

: | Association
>: | Projection + Association = External link target
*: | Raising + Association = Note
1: | Position + Association = Referencable note

. | Extension
<.> | Extension + Block = Media

-/+ | Degraded/Improved
.- | Degraded + Extension + Block = Source media
.+ | Improved + Extension + Block = Visual media

## | Ignore x 2 = Comment line
### | Ignore x 3 = Comment block

() | Parameter

@ | Adress
@() | Adress + Parameter = Target
10 changes: 8 additions & 2 deletions test-syntax.dh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- More emphasizing titles
o- Simplier notes ({[text]*, [other text]**})
o- Simplier link variants
x- Bold as default emphasis {[bold text]}
o- Definition {-[word]:[definition]}
- Better emphasis tokens
- Emphasis blocks (standard block already handled)
Expand Down Expand Up @@ -98,6 +97,10 @@ Click [here]> to see the rest of the [article]>.
>: www.journalist.com/article/super_news#anchor
>: www.journalist.com/article/super_news

See in the [next section](s2)>.
...
@(s2) I'm the next section !

Et [un]1, et [deux]2, et [trois]3, et [quatre]4, et [cinq]5, et [six]6, et [sept]7, et [huit]8, et [neuf]9, et [dix]10, et [zéro]0.

*[Bold]
Expand Down Expand Up @@ -144,4 +147,7 @@ o- Validated
x- Refused

<.> img/cat.png
<.> https://www.youtube.com/watch?v=ZpHg0ABxm3s
<.> https://www.youtube.com/watch?v=ZpHg0ABxm3s

Text with pre-formatted {content}.
Text with code {{content}}

0 comments on commit d30dbb1

Please sign in to comment.