Commit Graph

3 Commits (a5043af8ea084505453300ce77eab808e10f3c6b)

Author SHA1 Message Date
wxiaoguang 8a20fba8eb
Refactor markup render system ()
Remove unmaintainable sanitizer rules. No need to add special "class"
regexp rules anymore, use RenderInternal.SafeAttr instead, more details
(and examples) are in the tests
wxiaoguang 5eebe1dc5f
Fix and refactor markdown rendering ()
wxiaoguang 61be51e56b
Refactor markup package ()
To make the markup package easier to maintain:
1. Split some go files into small files
2. Use a shared util.NopCloser, remove duplicate code
3. Remove unused functions