I understand that quoteState.buffer gets the Markdown text that the user highlights when quoting, and is one of the things passed into the quote-share-buttons-before plugin outlet (accessed by this.args.data.quoteState.buffer). How do I get the raw, unparsed text that the user is highlighting, before it got converted to Markdown? Is it possible to “de-Markdown” the post? Is this possible at all?
Een tijdelijke oplossing waar ik aan kan denken, is om de ruwe post om te zetten naar Markdown (hoe, dat weet ik niet zeker), de start- en eindindex van de selectie in de geconverteerde tekst te bekijken, en die vervolgens te gebruiken om het gedeelte uit de originele tekst te extraheren. Het probleem zou zijn dat ik ervan uit moet gaan dat er geen tekens veranderen, d.w.z. Markdown vervangt tekens 1:1.
In this case, copying the quote converts the bullet point to a * in the quote, when I actually used +. I’m looking for a way to get the plus instead of the asterisk.