Skip to content

Commit c00e0eb

Browse files
committed
Revert "Fix inline <code> escaping in reference pages (2.0 branch)"
This reverts commit c5937a9.
1 parent 7e6147b commit c00e0eb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/Dropdown/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export const Dropdown = ({
152152
</div>
153153
<button
154154
onClick={() => handleOptionClick(option)}
155-
ref={(el) => {
156-
optionRefs.current[index] = el as HTMLButtonElement;
155+
ref={el => {
156+
optionRefs.current[index] = el as HTMLButtonElement
157157
}}
158158
onBlur={handleBlur}
159159
>

src/pages/_utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ export const getRefEntryTitleConcatWithParen = (
245245
*/
246246
export const escapeCodeTagsContent = (htmlString: string): string => {
247247
// Load the HTML string into Cheerio
248-
const $ = load(htmlString, {
249-
xmlMode: true
250-
});
248+
const $ = load(htmlString);
251249
// Loop through all <code> tags
252250
$("code").each(function () {
253251
// Don't escape code in multiline blocks, as these will already

0 commit comments

Comments
 (0)