Skip to content

Commit 8bd1936

Browse files
Merge #275
275: Support markdown formatted codeblocks r=ManyTheFish a=6543 # Pull Request ## Related issue Fixes go-gitea/gitea#29740 (comment) ## What does this PR do? add ``` ` ``` as seperator to support markdown formated text ## PR checklist Please check if your PR fulfills the following requirements: > Does this PR fix an existing issue, or have you listed the changes applied in the PR description... well I can file a issue if desired but I think this is a minor change? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes -> I hope so ;) Co-authored-by: 6543 <[email protected]>
2 parents 460d2a1 + e4fa5fc commit 8bd1936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charabia/src/separators.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/// - Zp Paragraph Separator
1313
/// - Zs Space Separator
1414
/// plus ". ", ", " and ។ល។" (៘ decomposition) to categorize them as hard separators
15+
/// and "`" to understand markdown formatted text
1516
#[rustfmt::skip]
1617
pub const DEFAULT_SEPARATORS: &[&str] = &[
1718
". ", ", ", "_", "‿", "⁀", "⁔", "︳", "︴", "﹍", "﹎", "﹏", "_", "-", "֊", "־", "᐀", "᠆", "‐", "‒", "–",
@@ -58,7 +59,7 @@ pub const DEFAULT_SEPARATORS: &[&str] = &[
5859
"𑪠", "𑪡", "𑪢", "𑱁", "𑱂", "𑱃", "𑱄", "𑱅", "𑱰", "𑱱", "𑻷", "𑻸", "𑿿", "𒑰", "𒑱", "𒑲", "𒑳", "𒑴", "𖩮",
5960
"𖩯", "𖫵", "𖬷", "𖬸", "𖬹", "𖬺", "𖬻", "𖭄", "𖺗", "𖺘", "𖺙", "𖺚", "𖿢", "𛲟", "𝪇", "𝪈", "𝪉", "𝪊", "𝪋",
6061
"𞥞", "𞥟", "\n", "\r", "\u{2029}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
61-
" ", " "
62+
" ", " ", "`"
6263
];
6364

6465
#[rustfmt::skip]

0 commit comments

Comments
 (0)