bsw@1045: if config.enforce_formatting_engine ~= 'markdown2' then bsw@1045: return bsw@1045: end bsw@1045: bsw@1045: ui.sidebar( "tab-whatcanido", function() bsw@1045: ui.sidebarHead( function() bsw@1045: ui.heading { level = 2, content = _"Formatting help" } bsw@1045: end ) bsw@1045: ui.sidebarSection( function () bsw@1045: ui.heading { level = 3, content = _"Paragraphs" } bsw@1045: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Separate each paragraph with at least one blank line" } bsw@1045: end } bsw@1045: end } bsw@1045: bsw@1045: ui.heading { level = 3, content = _"Headlines" } bsw@1045: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Underline main headlines with ===" } bsw@1045: end } bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Underline sub headlines with ---" } bsw@1045: end } bsw@1045: end } bsw@1045: bsw@1045: ui.heading { level = 3, content = _"Emphasis" } bsw@1045: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Put *asterisks* or around a phrase to make it italic" } bsw@1045: end } bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Put **double asterisks** around a phrase to make it bold" } bsw@1045: end } bsw@1045: end } bsw@1045: bsw@1045: ui.heading { level = 3, content = _"Lists" } bsw@1045: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Lists must be preceeded and followed by at least one blank line" } bsw@1045: end } bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Put a hypen (-) or asterisk (*) followed by a space in front of each item" } bsw@1045: end } bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"For numbered items use a digit (e.g. 1) followed by a dot (.) and a space" } bsw@1045: end } bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Indent sub items with spaces" } bsw@1045: end } bsw@1045: end } bsw@1045: bsw@1045: ui.heading { level = 3, content = _"Links" } bsw@1045: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1045: ui.tag { tag = "li", content = function () bsw@1045: ui.tag { content = _"Use [Text](http://example.com/) for links" } bsw@1045: end } bsw@1045: end } bsw@1045: bsw@1045: end ) bsw@1045: end )