Skip to content

Commit 08c456f

Browse files
authored
fix(split/markdown): treat code blocks as terminal nodes (#1157)
1 parent eb6fb95 commit 08c456f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ tree-sitter-javascript = "0.23.1"
9090
tree-sitter-json = "0.24.8"
9191
# The other more popular crate tree-sitter-kotlin requires tree-sitter < 0.23 for now
9292
tree-sitter-kotlin-ng = "1.1.0"
93-
tree-sitter-md = "0.3.2"
93+
tree-sitter-md = "0.5.1"
9494
tree-sitter-pascal = "0.10.0"
9595
tree-sitter-php = "0.23.11"
9696
tree-sitter-python = "0.23.6"

src/ops/functions/split_recursively.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static TREE_SITTER_LANGUAGE_BY_LANG: LazyLock<
161161
"Markdown",
162162
[".md", ".mdx", "md"],
163163
tree_sitter_md::LANGUAGE,
164-
["inline"],
164+
["inline", "indented_code_block", "fenced_code_block"],
165165
);
166166
add_treesitter_language(
167167
&mut map,

0 commit comments

Comments
 (0)