Fix: "Code formatting button does not escape backticks" (#8181)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
949b3cc650
commit
6b13988eaa
3 changed files with 94 additions and 4 deletions
|
@ -32,7 +32,7 @@ function escape(text: string): string {
|
|||
|
||||
// Finds the length of the longest backtick sequence in the given text, used for
|
||||
// escaping backticks in code blocks
|
||||
function longestBacktickSequence(text: string): number {
|
||||
export function longestBacktickSequence(text: string): number {
|
||||
let length = 0;
|
||||
let currentLength = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue