-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdown_input.do.txt
More file actions
143 lines (97 loc) · 2.89 KB
/
markdown_input.do.txt
File metadata and controls
143 lines (97 loc) · 2.89 KB
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
# Test of Markdown input syntax in DocOnce
DocOnce can recognize basic Markdown as input in the `.do.txt` file
and transform such text to native DocOnce.
# DocOnce comments also start with #, and can be confused with
# Markdown headings. The confusion is avoided by not having blanks
# after the # character in single-line comments. Multi-line
# comments work well and are never confused with Markdown headings.
<!-- Markdown applies standard HTML
comments -->
<!--- hpl: This is a special comment on text that
is rendered by extended Markdown versions. -->
<!--- This is another version of the special comment on text;
this one without any author name and colon in the beginning.
-->
##Table of contents
[TOC]
## Test of inline formatting
Markdown has **boldface** and *emphasize* typesetting, as well
as `inline verbatim computer code`.
**Paragraph headings.** These are written using standard Markdown
boldface syntax.
### Subsubsection heading
The Markdown headings can only be of three types: section, subsection,
and subsubsection.
# Typesetting of computer code
Here is a plain code snippet without language specification:
```
file=$1
if [ -f $file ]; then
cp $file $file.cop
fi
# This is Bash - what happens to this comment?
```
The same snippet typeset explicitly as Bash, but with a common
indentation to be removed:
```Bash
file=$1
if [ -f $file ]; then
cp $file $file.cop
fi
# This is Bash - what happens to this comment?
```
And here is Python:
```Python
from math import sin
def f(x):
return x*sin(x)
x = 1.4
print(f(x))
```
And HTML:
```HTML
<h1>Some heading</h1>
<!-- And a comment -->
```
# Test of quoted sections
> Markdown also features quoted
paragraphs that start with a greater
than sign, either just in the beginning
or at every line.
If a quoted paragraph with blank lines is desired, you
must use `>` on the beginning of every line.
> **NOTE**:
>
> This quoted paragragraph is a simulation of a primitive
> admon in Markdown.
# Test of lists
Markdown applies the dash in itemized lists:
- This is item 1
- This is item 2
- This is item 3
Let us test this in a quoted environment too:
> **List**:
> - This is item 1
> - This is item 2, which cannot be split between lines
> - This is item 3
Enumerated lists go as follows.
1. Item 1
2. Item 2
3. Item 3
# Test of tables
**Markdown Extra** has a special syntax for tables:
| Item | Value | Qty |
| :-------- | --------:| :--: |
| Computer | 1600 USD | 5 |
| Phone | 12 USD | 12 |
| Pipe | 1 USD | 234 |
#Horizontal marker/rule
-------------------------
# Test of mathematics
You can render *LaTeX* mathematical expressions using **MathJax**, as on [math.stackexchange.com][1]:
The *Gamma function* satisfying $\Gamma(n) = (n-1)!\quad\forall
n\in\mathbb N$ is via the Euler integral
$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
$$
[1]: https://math.stackexchange.com/