miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

Way to strip out markdown formatting to view as plain text. #106

Open Batophobia opened 4 years ago

Batophobia commented 4 years ago

Goal: Be able to display markdown text without formatting

Example:

# Heading # 1
text that is *bold* and **italic***
`*Formatting may not match text`

Normal output:

Heading # 1

text that is bold and **italic** `Formatting may not match text`

Desired Ouptut: Heading # 1 text that is bold and italic Formatting may not match text

My use case for this is to have markdown formatting on a specific post while having unformatted snippets to show in a list of posts. I've not found a way to do this yet, so if it already is possible I'd appreciate an example on how to do it.