File: ok_markdown.pas

package info (click to toggle)
pasdoc 0.16.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,572 kB
  • sloc: pascal: 28,894; javascript: 7,665; xml: 2,597; makefile: 523; sh: 417
file content (157 lines) | stat: -rw-r--r-- 2,169 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{ @abstract(**This is a test of Markdown syntax**)
Correct lists

- list item #1.1
- list item #1.2

end list

  - list item #2.1
  - list item #2.2

end list

  * list item #3

end list

  - list item #4

1. list item #5.1
2. list item #5.2
10. list item #5.10

Simple list with multiline text

 - item 6.1
  text
text
     text

 - item 6.2
 
   item text
   
end list

List with nested list

 * item 7.1
   text
   * item 7.1.1
     text
     
   text2

List with more nesting

 - item 8.1
  - item 8.1.1
   - item 8.1.1.1
     
    text 8.1.1
  - item 8.1.2
   - item 8.1.2.1
     
   text 8.1

end list

You can even mix markdown and PasDoc tags

@unorderedList(
- list
 item #8.1
- list
 item #8.2
)

Incorrect lists

*not a list*

1not a list

1 not a list

1.not a list


  Emphasis, aka italics, with *asterisks* or _underscores_.

  Strong emphasis, aka bold, with **asterisks** or __underscores__.

  Some **bold text**.

  Some **_bold and italic text_**.

  Some **some bold and _italic_ and _italic_
    and _italic once again_ text**.

  Some _italic text_.

  Some **bold text with some tags: My name is @name,
    some @code(begin end) and a link to me: @link(ok_markdown)**.

  \*markers could be escaped
  
  *and also escaped at end\*
  of a word*
  
  or placed inside_word or placed_inside_word_multiple_times or at the end_
  
  Multiplications are OK: A*B*C*D and with spaces too: A * B * C * D
  
  underscore _ is used to name some deprecated thing: something_

  Some `inline code`, some `**formatting** _inside_ code`

  Some preformatted code:

  ```
  program Foo;
    Some long code
    with
    syntax highlight
  ```

  Some Pascal code:

  ```pascal
  program Foo;
    Some long code
    with
    syntax highlight
  ```
  
  Correct URLs:
  
  [Some one-line descr](http://example)
  
  [Some multi-line
   descr](http://example)
   
  [Escaped \[\] descr](http://example)

  [\\](http://example)
  
  [a\\](http://example)
   
  [Bracket URL](http://example/(foo))
   
  Incorrect URLs:
  
  (http://example)
  
  [Some descr] (http://example)
  
  [Some descr](http://example
   
}
unit ok_markdown;

interface

implementation

end.