liquid_feedback_frontend
diff app/main/initiative/_sidebar_wikisyntax.lua @ 1045:701a5cf6b067
Imported LiquidFeedback Frontend 3.0 branch
author | bsw |
---|---|
date | Thu Jul 10 01:19:48 2014 +0200 (2014-07-10) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/initiative/_sidebar_wikisyntax.lua Thu Jul 10 01:19:48 2014 +0200 1.3 @@ -0,0 +1,61 @@ 1.4 +if config.enforce_formatting_engine ~= 'markdown2' then 1.5 + return 1.6 +end 1.7 + 1.8 +ui.sidebar( "tab-whatcanido", function() 1.9 + ui.sidebarHead( function() 1.10 + ui.heading { level = 2, content = _"Formatting help" } 1.11 + end ) 1.12 + ui.sidebarSection( function () 1.13 + ui.heading { level = 3, content = _"Paragraphs" } 1.14 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.15 + ui.tag { tag = "li", content = function () 1.16 + ui.tag { content = _"Separate each paragraph with at least one blank line" } 1.17 + end } 1.18 + end } 1.19 + 1.20 + ui.heading { level = 3, content = _"Headlines" } 1.21 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.22 + ui.tag { tag = "li", content = function () 1.23 + ui.tag { content = _"Underline main headlines with ===" } 1.24 + end } 1.25 + ui.tag { tag = "li", content = function () 1.26 + ui.tag { content = _"Underline sub headlines with ---" } 1.27 + end } 1.28 + end } 1.29 + 1.30 + ui.heading { level = 3, content = _"Emphasis" } 1.31 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.32 + ui.tag { tag = "li", content = function () 1.33 + ui.tag { content = _"Put *asterisks* or around a phrase to make it italic" } 1.34 + end } 1.35 + ui.tag { tag = "li", content = function () 1.36 + ui.tag { content = _"Put **double asterisks** around a phrase to make it bold" } 1.37 + end } 1.38 + end } 1.39 + 1.40 + ui.heading { level = 3, content = _"Lists" } 1.41 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.42 + ui.tag { tag = "li", content = function () 1.43 + ui.tag { content = _"Lists must be preceeded and followed by at least one blank line" } 1.44 + end } 1.45 + ui.tag { tag = "li", content = function () 1.46 + ui.tag { content = _"Put a hypen (-) or asterisk (*) followed by a space in front of each item" } 1.47 + end } 1.48 + ui.tag { tag = "li", content = function () 1.49 + ui.tag { content = _"For numbered items use a digit (e.g. 1) followed by a dot (.) and a space" } 1.50 + end } 1.51 + ui.tag { tag = "li", content = function () 1.52 + ui.tag { content = _"Indent sub items with spaces" } 1.53 + end } 1.54 + end } 1.55 + 1.56 + ui.heading { level = 3, content = _"Links" } 1.57 + ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.58 + ui.tag { tag = "li", content = function () 1.59 + ui.tag { content = _"Use [Text](http://example.com/) for links" } 1.60 + end } 1.61 + end } 1.62 + 1.63 + end ) 1.64 +end )