Skip to content

Commit

Permalink
fix: raw block ends with backtick being wrongly formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer committed Mar 29, 2024
1 parent c5cf46c commit 87d38dc
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"files.eol": "\n"
}
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ once_cell = { version = "1.19.0", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
clap = { version = "4.5.4", features = ["derive", "env"], optional = true }

[patch.crates-io]
# https://github.com/typst/typst/issues/3820
typst-syntax = { git = "https://github.com/Myriad-Dreamin/typst", rev = "d2afbb9a62436a20b507e833d70a2ddc77a00b74"}

[dev-dependencies]
insta = { version = "1.37.0" }
libtest-mimic = "0.7.0"
Expand Down
4 changes: 4 additions & 0 deletions tests/assets/unit/markup/indent-raw.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
`123`
```typ
`code`
```
9 changes: 9 additions & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
source: tests/assets.rs
expression: doc_string
input_file: tests/assets/unit/markup/indent-raw.typ
---
`123`
```typ
`code`
```
9 changes: 9 additions & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
source: tests/assets.rs
expression: doc_string
input_file: tests/assets/unit/markup/indent-raw.typ
---
`123`
```typ
`code`
```
9 changes: 9 additions & 0 deletions tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
source: tests/assets.rs
expression: doc_string
input_file: tests/assets/unit/markup/indent-raw.typ
---
`123`
```typ
`code`
```

0 comments on commit 87d38dc

Please sign in to comment.