Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompile Markdown parsing AND printing #55752

Merged
merged 8 commits into from
Mar 4, 2025
16 changes: 14 additions & 2 deletions stdlib/Markdown/src/Markdown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,35 @@ catdoc(md::MD...) = MD(md...)

if Base.generating_output()
# workload to reduce latency
md"""
show(devnull, MIME("text/plain"), md"""
# H1
## H2
### H3
#### H4
##### H5
###### H6
**bold text**
*italicized text*
***bold and italicized text***
> blockquote
1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
- Indented item
`code`
Horizontal Rule
---
"""
**[Duck Duck Go](https://duckduckgo.com)**
<https://www.markdownguide.org>
<[email protected]>
![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg "San Juan Mountains")

H~2~O
X^2^
""")
end

end