diff --git a/docs/_markbind/boilerplates/codeAndOutput.md b/docs/_markbind/boilerplates/codeAndOutput.md index c0e165e0ac..6aa38cbc93 100644 --- a/docs/_markbind/boilerplates/codeAndOutput.md +++ b/docs/_markbind/boilerplates/codeAndOutput.md @@ -1,10 +1,12 @@ - + + +{% macro codeBox() %} %%CODE:%%
@@ -12,7 +14,9 @@ {{ code | safe | trim }} ```
+{% endmacro %} +{% macro outputBox() %} %%OUTPUT:%%
@@ -21,3 +25,28 @@ {{ code | safe }}
+{% endmacro %} + +{% if horizontal != null %} +
+ + + + + + + +
+{{ codeBox() }} + +{{ outputBox() }} +
+
+ +{% else %} + +{{ codeBox() }} + +{{ outputBox() }} + +{% endif %} diff --git a/docs/_markbind/boilerplates/codeAndOutputCode.md b/docs/_markbind/boilerplates/codeAndOutputCode.md index 46b2140af2..d8457b298e 100644 --- a/docs/_markbind/boilerplates/codeAndOutputCode.md +++ b/docs/_markbind/boilerplates/codeAndOutputCode.md @@ -1,10 +1,12 @@ - + - + + +{% macro codeBox() %} %%CODE:%%
@@ -12,7 +14,9 @@ {{ code | safe | trim }} ````
+{% endmacro %} +{% macro outputBox() %} %%OUTPUT:%%
@@ -21,3 +25,28 @@ {{ code | safe }}
+{% endmacro %} + +{% if horizontal != null %} +
+ + + + + + + +
+{{ codeBox() }} + +{{ outputBox() }} +
+
+ +{% else %} + +{{ codeBox() }} + +{{ outputBox() }} + +{% endif %} diff --git a/docs/_markbind/boilerplates/codeAndOutputSeparate.md b/docs/_markbind/boilerplates/codeAndOutputSeparate.md index 3e31b0686b..71bf2a742e 100644 --- a/docs/_markbind/boilerplates/codeAndOutputSeparate.md +++ b/docs/_markbind/boilerplates/codeAndOutputSeparate.md @@ -1,10 +1,12 @@ - + + +{% macro codeBox() %} %%CODE:%%
@@ -12,7 +14,9 @@ {{ code | safe | trim }} ```
+{% endmacro %} +{% macro outputBox() %} %%OUTPUT:%%
@@ -21,3 +25,28 @@ {{ output | safe }}
+{% endmacro %} + +{% if horizontal != null %} +
+ + + + + + + +
+{{ codeBox() }} + +{{ outputBox() }} +
+
+ +{% else %} + +{{ codeBox() }} + +{{ outputBox() }} + +{% endif %} diff --git a/docs/index.md b/docs/index.md index cb528866ad..75f8f5d4ba 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,61 +31,27 @@ MarkBind extensions to Markdown | `==highlighted text==`
`%%grey text%%`
` An example that uses GFMD syntax for task lists: -
- - -  -  -  - -
- -```markdown + +markdown + + **Things to do:** - - [x] Finish my changes - [ ] Push my commits to GitHub - [ ] Open a pull request + + -``` -   →  - - -**Things to do:** - -- [x] Finish my changes -- [ ] Push my commits to GitHub -- [ ] Open a pull request - -
- -
An example that uses KaTeX to generate math equations: -
- - - -  -  -  - -
- -```markdown -Euler's Identity \(e^{i\pi}+1=0\) is a beautiful formula. -``` -   →  - - + +markdown + Euler's Identity \(e^{i\pi}+1=0\) is a beautiful formula. - -
-
+ +