Still missing most of the content.

This commit is contained in:
Niels Serup
2011-07-26 03:04:17 +02:00
parent 70d45d4119
commit 23038784d4
43 changed files with 663 additions and 56 deletions

View File

@@ -0,0 +1,197 @@
#+title: Test of basic mege features
#&summary
Test of mege's most important and most commonly used features
#&
#+license: bysa
* Test of basic mege features
*mege* has many features. A bit /too/ many, perhaps.
Remember to visit [[<@eval page.locurl@>.org]] to see the source of this document.
** Basic inline formatting
This is a paragraph.
This is a *paragraph* with the last word *strongly* /emphasized/. _This_ is
underlined. _/*The effects*/ can /be/ combined_. Press -C-n- to scroll down if
your web browser is Conkeror (-Ctrl+N- in non-emacs speak).
Type this: =$ echo echo=.
** Extended inline formatting
mege uses postfix operators for less essential inline formatting.
More&strong strong text&samp. And even acronyms and abbreviations:
GNU&acro="GNU's not UNIX" and MF&abbr="Medlem af Folketinget". {Other
colors}&color=red and {other sizes}&small as well, {{and also}&color=green
combinations}&large.
Now subtract y&var from x&var - 2^{32}. And a definition: {An integer above 0
is above -1_{a number}}&dfn.
** Lists
+ A
+ B
+ C
Another list:
+ The text of this line actually takes up two lines in its source form, and
not just one.
+ Just one line
+ A sublist
+ with another entry
1. and so on
2. etc.
1. ouoiaou
2. ouaoiu
1. oaiaou
+ continuing
** Definition lists
+ Lizard :: an animal
+ Ape :: also an animal
+ Book :: not an animal
+ Other books :: in existence
+ fail
+ aoa :: auoua oeu aou oe o u ouaoe uaoe uo uaoura oeu euao aoe aoe u au oo uo
uoe uo oe u,. uoeauoe uoa u,u
* a
* 3u :: o (correct behaviour)
** Images
#&img;url=test0.png, alt='This is a test picture', width=270, float=right, \
#&caption='A test picture'
#+caption: A test picture \
#+with a caption on two lines
#&img;url=test0.png, alt='This is a test picture', width=240, float=right
#&caption
A test picture
#&
#&img;url=test0.png, alt='This is a test picture', width=210, float=right
** Links
Here is a link: [[http://example.com/][Wizard's webpage]]. And a shorter one: [[http://example.com/]]! I
want to _underline_ this link: [[http://example.com/]]&underline.
** Block containers
Blockquote:
#&block
Hello.
#&
*** Combination
#&+large
#&block
This is a paragraph inside a blockquote inside a block container. This is
escaped:
\#&
#&
#&
** Inline container
abc
#&-strong,tiny,color=red
def
(no new paragraph)
#&
ghi.
** Inline modifiers
This is a bt&acro='brutal test' of mege. More {bru te}&abbr='brutal testing'...
+ In a list
+ Not escaped: x&var, escaped: x\&var, not escaped in group: {x}&var, escaped
in group: {x}\&var. ns@metanohi.org ua
Nested groups: {{ab{ula aa}&abbr=a cd}&var&color=red cd}&acro
** Inline inline formatting
*mege*. /mege/ ... _mege_, {=mege mege=}&html. ~mege~! -C-f-?
Fail: ~mege ~, *meg*e, solution: {{mege }&samp}, {meg&strong}e
Nested fail: */oo/ aub.
{{a&strong}&emph}, {a&strong&emph}
A */_woo_/*!
** Tables
*** Body only
| Name | Age |
| Xryurg | 300 |
| Bkrau | 2 |
*** With head and foot
| Name | Age |
|--------+-----|
| Xryurg | 300 |
| Bkrau | *2* |
|--------+-----|
| Name | Age |
** Footnotes
This sentence is true[fn:true]. This is /not/[fn:false].
[fn:true] Master of Truthfulness, 1997
[fn:false] Master of Truthfulness, 1999, /revised ed./, with special
introduction by the Master of Falsefulness
\[fn:false] Master of Truthfulness, 1999, revised ed.
** Subscript and superscript
x_{tallyho} = 33^{12}, escaped: x_\{tallyho} = 33^\{12}
** Code
: ver *ba* tim
: auoiao =aa
#++pre
: ver *ba* tim /aa/
: abc
** Eval'd Code
Inline code: <@eval 2 + 3@>. <@exec print('aha')
Inline code:
#&-eval
2 + 3
#&
Block code:
#++eval
#+BEGIN_SRC python
2 + 3
#+END_SRC
Inline HTML: <@html <strong>strong text</strong>@>. Smiley: '_~
* Org features not supported by mege
** In lists
#+BEGIN_SRC
10. [&10]Starting at 10
11. ABC
40. [&40]Going to 40
41. 2+2=4
#+END_SRC

View File

@@ -0,0 +1,11 @@
#+title: Test of mege code
#&summary
Code in mege
#&
#+license: bysa
* Test of mege code
While the <@eval macros.titlelink('basics')@> does include code,
this test contains more. And all of it's different.

View File

@@ -0,0 +1,21 @@
#+title: mege tests
#+license: bysa
#+summary: Links to tests of mege
* mege tests
Yes, I know. I cannot hide it. *mege*, the otherwise brilliant engine that
channels its powers into metanohi, is not perfect. It was created by a human
--- and humans are known to be imperfect.
To make sure its html generation is working properly, the following test pages
have been created:
+ [[basics][Basics]]
+ [[tables][Tables]]
+ [[math][Math]]
+ [[code][Code]]
+ [[video][Video]]
Perhaps /mege/ will grow and come near to perfection one day.

View File

@@ -0,0 +1,11 @@
#+title: Test of mege math
#&summary
Math in mege
#&
#+license: bysa
* Test of mege math
While the <@eval macros.titlelink('basics', page.pathdir)@> does include math,
this test contains more. And all of it's different.

View File

@@ -0,0 +1,14 @@
#+title: Test of mege tables
#&summary
Tables in mege
#&
#+license: bysa
* Test of mege tables
While the <@eval macros.titlelink('basics', page.pathdir)@> does include
tables, this test contains more. And they're all different.
* Basic table

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@@ -0,0 +1,6 @@
#+title: Test of mege video
#+license: bysa
#+summary: How to show a video in mege
* Test of mege video