Skip to content

Commit

Permalink
cleanup markdown tables (planetdecred#529)
Browse files Browse the repository at this point in the history
* cleanup markdown tables

* correctly render markdown widgets

* separate html and markdown renderers

* render list items

* Render code and code block

- Remove clickable links

* Reduce H4 text size to 32

* Set text size for all header levels

Co-authored-by: Olanrewaju Collins <ocollins444@gmail.com>
  • Loading branch information
ugwueze-dev and beansgum committed Sep 16, 2021
1 parent ac2cb6d commit a088f55
Show file tree
Hide file tree
Showing 7 changed files with 1,220 additions and 750 deletions.
23 changes: 23 additions & 0 deletions ui/renderers/const.go
@@ -0,0 +1,23 @@
package renderers

const (
openTagPrefix = "[@"
openTagSuffix = "@]"
closeTag = "[/]"

italicsTagName = "i"
strongTagName = "strong"
emphTagName = "emph"
strikeTagName = "strike"
blockQuoteTagName = "blockquote"
orderedListTagName = "ol"
unorderedListTagName = "ul"
listItemTagName = "li"

h1TagName = "h1"
h2TagName = "h2"
h3TagName = "h3"
h4TagName = "h4"
h5TagName = "h5"
h6TagName = "h6"
)

0 comments on commit a088f55

Please sign in to comment.