4 ms·
I like the support for markdown... I wonder if other web servers are thinking of supporting or already support that feature? Does it recognize GitHub Flavored M
by ccalvert 11y ago
I like the support for markdown... I wonder if other web servers are thinking of supporting or already support that feature? Does it recognize GitHub Flavored Markdown (GFM)?
- shurcooL 11y agomholt said that Markdown support can be enhanced in a comment above (https://news.ycombinator.com/item?id=9453216 https://news.ycombinator.com/item?id=9453216). There exists a native Go package to render GFM, see second from the top at https://github.com/avelino/awesome-go#text-processing https://github.com/avelino/awesome-go#text-processing.
- mholt 11y agoI've been looking at your GFM package, looks good! It's on my roadmap for possible future integration. I also want to see support for the kind of Markdown files that Hugo serves, with front matter. So there's lots of possibilities for the Markdown middleware right now.
- Spiritus 11y agoNot to sound ungrateful. But would it be possible to split your GFM package into its own repo? Because it's currently a PITA to vendor because it pulls half the world with it?
- shurcooL 11y agoAbsolutely, that's a fair request. Someone has already opened an issue about it at https://github.com/shurcooL/go/issues/19 https://github.com/shurcooL/go/issues/19, and I'm planning to take care of it. Edit: Oh, I guess that was you.
- tshannon 11y agoFreehold currently does this: https://tshannon.bitbucket.org/freehold/ https://tshannon.bitbucket.org/freehold/