refactor: 整理代码

This commit is contained in:
fengxxc
2021-12-01 18:47:31 +08:00
parent 6b5b37f6e4
commit 32558cc8e8
2 changed files with 29 additions and 37 deletions

View File

@@ -58,6 +58,7 @@ func formatContent(pieces []parse.Piece, depth int) string {
case parse.TABLE:
// TODO
case parse.CODE_INLINE:
// TODO
case parse.CODE_BLOCK:
pieceMdStr = formatCodeBlock(piece)
case parse.BLOCK_QUOTES:
@@ -67,6 +68,7 @@ func formatContent(pieces []parse.Piece, depth int) string {
case parse.U_LIST:
pieceMdStr = formatList(piece, depth)
case parse.HR:
// TODO
case parse.BR:
pieceMdStr = " \n"
}