将Wiki帖子转换为HTML

We are looking to use some categories of our forum to crowdsource knowledge from comments that will be incorporated into wiki posts via moderators. This content will then be published read-only on another site in HTML.

I realize there are probably a lot of markdown parsers (although the post syntax is not strictly MD) in Python (our platform) that can output HTML, but I wondered if anyone had done something like this with Discourse and had any particular recommendations about a specific parser or some other aspect of this task.

Thanks!

2 个赞

Just pull the cooked post? Discourse converts it to html. Just add .json to the end of the post url and look.

6 个赞

@falco 最近让 /raw/ 路径对整个主题以及帖子都生效了。因此,请尝试:

https://meta.discourse.org/raw/202680/2
https://meta.discourse.org/raw/202680

3 个赞

太棒了,这真的很有用。谢谢你 @falco

1 个赞