antirez / antirez/lamernews

Markdown support

未關閉
#43 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Ruby
星號
1.4k
分支
199
PR 合併指標
30 天內沒有已合併 PR

描述

Or at least some subset of it.

If we want to keep it pure ruby then the obvious choice of parser/renderer is [kramdown](http://kramdown.rubyforge.org/). This is not as fast or as secure as that Redcarpet library github wrote, but thats probably not a problem right now

My instinct would be to create a separate Markdown module to encapsulate everything, making it easier to swap it for a C based renderer in future if needed. Then just store a `body_html` string on the comment objects which gets rendered to the page, alongside the original user-submitted markdown for use when a comment is edited.

I don't know, maybe extracting it to a module is unnecessary.

Thoughts?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。