fix: Preserve newlines in markdown with mentions

This commit is contained in:
Maksim Eltyshev
2025-07-24 16:11:15 +02:00
parent 001621eec7
commit 4effc0ce23
3 changed files with 40 additions and 44 deletions
+3 -3
View File
@@ -52,9 +52,9 @@ export default (md) => {
return;
}
token.children.forEach((childrenToken, index) => {
if (childrenToken.type === 'link_open') {
process(childrenToken, token.children[index + 1]);
token.children.forEach((currentToken, index) => {
if (currentToken.type === 'link_open') {
process(currentToken, token.children[index + 1]);
}
});
});