Remove replaceAll method in addLink
This commit is contained in:
parent
daf43f8d34
commit
dc57fcf7e7
|
@ -149,7 +149,6 @@ export const addSingleLink = function (_start, _end, type) {
|
|||
if (linkTextObj !== undefined) {
|
||||
edge.text = sanitizeText(linkTextObj.text.trim());
|
||||
|
||||
edge.text = edge.text.replaceAll('\\"', '"');
|
||||
// strip quotes if string starts and ends with a quote
|
||||
if (edge.text[0] === '"' && edge.text[edge.text.length - 1] === '"') {
|
||||
edge.text = edge.text.substring(1, edge.text.length - 1);
|
||||
|
|
Loading…
Reference in New Issue