Skip to content

Commit 0dd78f7

Browse files
PallHaraldssonKristofferCIanButterworth
authored
Precompile Markdown parsing AND printing (#55752)
--------- Co-authored-by: Kristoffer <[email protected]> Co-authored-by: Ian Butterworth <[email protected]>
1 parent f375d1f commit 0dd78f7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

stdlib/Markdown/src/Markdown.jl

+14-2
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,35 @@ catdoc(md::MD...) = MD(md...)
138138

139139
if Base.generating_output()
140140
# workload to reduce latency
141-
md"""
141+
show(devnull, MIME("text/plain"), md"""
142142
# H1
143143
## H2
144144
### H3
145+
#### H4
146+
##### H5
147+
###### H6
145148
**bold text**
146149
*italicized text*
150+
***bold and italicized text***
147151
> blockquote
148152
1. First item
149153
2. Second item
150154
3. Third item
151155
- First item
152156
- Second item
153157
- Third item
158+
- Indented item
154159
`code`
155160
Horizontal Rule
156161
---
157-
"""
162+
**[Duck Duck Go](https://duckduckgo.com)**
163+
<https://www.markdownguide.org>
164+
165+
![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg "San Juan Mountains")
166+
167+
H~2~O
168+
X^2^
169+
""")
158170
end
159171

160172
end

0 commit comments

Comments
 (0)