Skip to content

Commit

Permalink
Use mode mode syntax highlighting in Typst Formatting Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Oct 20, 2024
1 parent 045ccb9 commit 3f9a81a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ Typstry = "f0ed7684-a786-439e-b1e3-3b82803b501e"
[compat]
Documenter = "1"
Luxor = "3 - 4"
Typst_jll = "0.12"
julia = "1.10"

[extras]
Typst_jll = "eb4b1da6-20f6-5c66-9826-fdb8ad410d0e"
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open(template; truncate = true) do file
" let x = c.x",
" if x in (3, 5, 7) { c }",
" else { raw({ c.body.text }, lang: {",
" if x < 2 { \"julia\" } else if x == 4 { \"typ\" } else { \"typc\" }",
" if x < 2 { \"julia\" } else if x == 2 { \"typc\" } else if x == 4 { \"typ\" } else { \"typm\" }",
" } ) }",
" }",
"))\n",
Expand Down
4 changes: 2 additions & 2 deletions src/Strings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ Print `\\` to `io` `n` times.
# Examples
```jldoctest
julia> julia> Typstry.Strings.escape(stdout, 2)
\\
julia> Typstry.Strings.escape(stdout, 2)
\\\\
```
"""
escape(io, n) =
Expand Down

0 comments on commit 3f9a81a

Please sign in to comment.