File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -245,7 +245,9 @@ export const getRefEntryTitleConcatWithParen = (
245245 */
246246export const escapeCodeTagsContent = ( htmlString : string ) : string => {
247247 // Load the HTML string into Cheerio
248- const $ = load ( htmlString ) ;
248+ const $ = load ( htmlString , {
249+ xmlMode : true
250+ } ) ;
249251 // Loop through all <code> tags
250252 $ ( "code" ) . each ( function ( ) {
251253 // Don't escape code in multiline blocks, as these will already
You can’t perform that action at this time.
0 commit comments