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?
A workaround that I can think of is to convert the raw post to Markdown (how, I’m not sure), look at the start and end index of the selection in the converted text, than use that to extract the section from the original text. The issue would be that I’d need to assume no characters change, i.e. Markdown replaces characters 1:1. Surely there’s a better way ?
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.