markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Adjust text before rendering

Open lfrati opened this issue 4 years ago • 1 comments

I really love this project but I have a minor issue. I usually add some metadata to my markdown files (e.g. tags, date...) that I would like to filter out from the preview. I was looking at your code hoping to find a sport where I can hook into and remove those lines from the text before it is rendered. Any suggestions for where to look? Perhaps in this function? (assuming that is where the ts server reads the buffer from)

lfrati avatar Jun 23 '20 18:06 lfrati

It would be better to do before render

https://github.com/iamcco/markdown-preview.nvim/blob/master/app/pages/index.jsx#L127

iamcco avatar Jul 21 '20 02:07 iamcco