Fix: "Code formatting button does not escape backticks" (#8181)

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Yaya Usman 2022-04-19 12:20:56 +03:00 committed by GitHub
parent 949b3cc650
commit 6b13988eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 4 deletions

View file

@ -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;