mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
fix(v2): escape link text in TOC (#2236)
This commit is contained in:
parent
f254da5bb8
commit
2d08787ed5
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function toValue(node) {
|
|||
if (node && node.type) {
|
||||
switch (node.type) {
|
||||
case 'text':
|
||||
return node.value;
|
||||
return escapeHtml(node.value);
|
||||
case 'heading':
|
||||
return node.children.map(toValue).join('');
|
||||
case 'inlineCode':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue