Tags

To the EWiki compiler, tags are simple names that will be transformed into the HTML format. A [div] will be a <div>, without paying any further attention at the name div.

Parameters

Parameters differ from HTML. They are enclosed within parenthesis, separated by commas, using a colon to divide the attribute from its value. In the simple form, [div(font-weight:bold)] will be as HTML <div style="font-weight:bold">. At this point, doesn't seem to help much, but let's consider this: [div(font-weight:bold,margin:10px,class=supersized)], where the HTML will be <div style="font-weight:bold;margin:10px" class="supersized")>. First thing you may notice is that the compiler detected class as a separated attribute. Also, it's not necessary to create a style, nor include quotes.

CSS attributes
EWiki passes all attributes as CSS attributes, except for recognized names like class, href, etc. The later are expanded as HTML attributes.

Containers

As in HTML, EWiki tags are containers. You can add content within the container opening tag, and the closing tag.

EWiki introduces a major difference here, allowing any container to easily write text. By adding the suffix -text, EWiki containers create paragraphs by using simple line feeds. By default, the root container is a text container.

EWiki HTML Description
[div]
Hello

world
[/div]
Hello world
Behaves as normal HTML, where line feeds are white spaces.
[div-text]

Hello

world
[/div-text]

Hello

world

Creates HTML paragraphs for new lines.
Non-intrusive paragraphs
When in text containers, EWiki does not force a paragraph for the first block of text. This ensures not to create paragraphs inside macro containers, that may interfere with the expected result. To change this behavior for the first block of text, add an empty line at the beginning.
English12/11/23 18:25Lluís Turró Cutiller
English12/31/23 14:38Lluís Turró Cutiller
English01/05/24 12:28Lluís Turró Cutiller