1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Updated about

This commit is contained in:
Zack 2016-02-07 14:00:54 -05:00
parent 26ad3b91f0
commit 94c0541cd0
2 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ func renderMarkdown(c *gin.Context, title string) {
html2 = strings.Replace(html2, s, "<span class='texi' data-expr='"+s[1:len(s)-1]+"'></span>", 1)
}
html2 = strings.Replace(html2, "&amp;#36;", "&#36;", -1)
c.HTML(http.StatusOK, "view.tmpl", gin.H{
"Title": title,
"Body": template.HTML([]byte(html2)),

View File

@ -23,7 +23,7 @@ You can also write your notes in [Markdown](https://daringfireball.net/projects/
If you are writing a list and you want to tick off things really easily, just add ` + "`" + `/list` + "`" + `. For example, after editing [` + "`" + `/grocery` + "`" + `](/grocery), goto [` + "`" + `/grocery/list` + "`" + `](/grocery/list). In this page, whatever you click on will be striked through and moved to the end. This is helpful if you write a grocery list and then want to easily delete things from it.
Math is supported using [Katex](https://github.com/Khan/KaTeX). Simple
Math is supported using [Katex](https://github.com/Khan/KaTeX). For example, ` + "`" + `&#36;\frac{1}{2}&#36;` + "`" + ` becomes $\frac{1}{2}$ and ` + "`" + `&#36;&#36;E=mc^2&#36;&#36;` + "`" + ` becomes $$E=mc^2$$
Be cautious about writing sensitive information in the notes as anyone with the URL has access to it. For more information, or if you'd like to edit the code, [use the github](https://github.com/schollz/cowyo).