You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After applying custom parser function to the Live Markdown Input, its content breaks.
For example, after applying following parser:
functionparser(input){'worklet';constranges=[];// Regular expressions for hashtags and mentionsconsthashtagRegex=/#(\w+)/g;constmentionRegex=/@(\w+)/g;// Find and push hashtag rangesletmatch;while((match=hashtagRegex.exec(input))!==null){ranges.push({start: match.index,length: match[0].length,type: 'link',// type 'link' for hashtags});}// Find and push mention rangeswhile((match=mentionRegex.exec(input))!==null){ranges.push({start: match.index,length: match[0].length,type: 'mention-user',// type 'mention-user' for user mentions});}returnranges;}
Screen.Recording.2024-12-12.at.09.47.06.mov
Reproduction steps
Open the example app
Write following text: @a #1
The text was updated successfully, but these errors were encountered:
Skalakid
changed the title
Custom parser duplicates the input context on web
Custom parser duplicates the input content on web
Dec 12, 2024
Description:
After applying custom parser function to the Live Markdown Input, its content breaks.
For example, after applying following parser:
Screen.Recording.2024-12-12.at.09.47.06.mov
Reproduction steps
@a #1
The text was updated successfully, but these errors were encountered: