Skip to content

Commit fed5b13

Browse files
authored
Merge pull request #279 from LuxDL/la/latex
lower priority
2 parents dafa189 + c889bea commit fed5b13

File tree

6 files changed

+37
-4
lines changed

6 files changed

+37
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v0.2.6 - 2025-06-08
4+
- Lowers MIME priority for LaTeX rendering.
5+
36
## v0.2.5 - 2025-05-29
47
- Add LaTeX rendering support on outputs from Documenter blocks.
58
- Fix a bug with `@ansi` blocks in draft mode.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DocumenterVitepress"
22
uuid = "4710194d-e776-4893-9690-8d956a29c365"
33
authors = ["Lazaro Alonso <[email protected]>", "Anshul Singhvi <[email protected]>", "Julius Krumbiegel"]
4-
version = "0.2.5"
4+
version = "0.2.6"
55

66
[deps]
77
ANSIColoredPrinters = "a4c015fc-c6ff-483c-b24f-f7ea428134e9"

docs/Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[deps]
2+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3-
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
44
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
55
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
6+
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
7+
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
68

79
[sources]
8-
DocumenterVitepress = { path = ".." }
10+
DocumenterVitepress = {path = ".."}

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ using Documenter
22
using DocumenterVitepress
33
using DocumenterCitations
44
using DocumenterInterLinks
5+
using LaTeXStrings
56

67
# Handle DocumenterCitations integration - if you're running this, then you don't need anything here!!
78
documenter_citations_dir = dirname(dirname(pathof(DocumenterCitations)))

docs/src/manual/markdown-examples.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,33 @@ You can also use fenced code blocks with the `math` tag for equations!
476476
\nabla^2 \Phi = \rho
477477
```
478478

479+
## LaTeXStrings
480+
481+
:::tabs
482+
483+
== text string
484+
485+
```@example
486+
using LaTeXStrings
487+
L"an equation: $\alpha^2$"
488+
```
489+
490+
== text/latex display
491+
492+
```@example
493+
using LaTeXStrings
494+
LaTeXString("an equation: \$\\alpha^2\$")
495+
```
496+
497+
:::
498+
499+
## DataFrame
500+
501+
```@example
502+
using DataFrames
503+
DataFrame(A=1:3, B=5:7, fixed=1)
504+
```
505+
479506
## [Latex Symbols $\Lambda_\theta$ and $\bf Z$](@id latex_symbols_in_headings)
480507

481508
::: tip

src/writer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ element. Priority is in ascending order, i.e., 1 has more priority than 0.
685685
"""
686686
function mime_priority end
687687
mime_priority(::MIME"text/plain") = 0.0
688+
mime_priority(::MIME"text/latex") = 0.5
688689
mime_priority(::MIME"text/markdown") = 1.0
689690
mime_priority(::MIME"text/html") = 2.0
690-
mime_priority(::MIME"text/latex") = 2.5
691691
mime_priority(::MIME"image/svg+xml") = 3.0
692692
mime_priority(::MIME"image/png") = 4.0
693693
mime_priority(::MIME"image/webp") = 5.0

0 commit comments

Comments
 (0)