Commit 26ab520f authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '221082-inline-code-fix-for-custom-renderer-identifiers' into 'master'

Fix identifers validation against null next node

Closes #221082

See merge request gitlab-org/gitlab!35775
parents f007fc33 31655066
......@@ -33,7 +33,7 @@ const hasExitingPotential = literal => literal.includes(']: ');
const hasAdjacentExit = node => {
let currentNode = node;
while (currentNode.next && currentNode.literal !== null) {
while (currentNode && currentNode.literal !== null) {
if (hasExitingPotential(currentNode.literal)) {
return true;
}
......
---
title: Fix unique case where static site editor's custom renderer for identifier syntax didn't robustly handle inline code
merge_request: 35775
author: Derek Knox
type: fixed
......@@ -19,9 +19,7 @@ const buildMockTextNodeWithAdjacentInlineCode = isForward => {
type: 'code',
[direction]: {
literal: isForward ? literalClose : literalOpen,
[direction]: {
literal: null,
},
[direction]: null,
},
},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment