Markdown 从降价文章中提取片段

Markdown 从降价文章中提取片段,markdown,Markdown,有没有一种好方法可以从降价文章中提取内容并制作一个片段(例如,要在搜索结果中显示的内容) 如果你写了一篇这样的文章: #Welcome! This is a *large* amount of markdown _symbols_. Here are some other things that are possible in markdown: * Lists * using * an asterisk 只需输出非格式化的标记,代码片段中就会有大量的哈希值和UnderScore。看起来糟

有没有一种好方法可以从降价文章中提取内容并制作一个片段(例如,要在搜索结果中显示的内容)

如果你写了一篇这样的文章:

#Welcome!
This is a  *large* amount of markdown _symbols_. 
Here are some other things that are possible in markdown:
* Lists
* using
* an asterisk
只需输出非格式化的标记,代码片段中就会有大量的哈希值和UnderScore。看起来糟透了

> #Welcome! This is a  *large* amount of markdown _symbols_    Here are some other things that are possible in markdown:    * Lists    * using
> * an asterisk

对于如何处理这一问题,有一种常见的做法吗?

pandoc转换为多个

“普通”格式剥离strong和em,但留下标题和列表之类的块。可以接受吗

$ pandoc --to plain Welcome.md
Welcome!
========

This is a large amount of markdown symbols. Here are some other things
that are possible in markdown:

-   Lists
-   using
-   an asterisk
不幸的是,“plain”不受