Skip to content

How to use Enhanched syntax

whistyun edited this page Oct 23, 2021 · 1 revision

Text decolation

MdXaml support italic, bold, strikethrough, underline, and color text.

Below table shows each idioms.

Example

|name          |format                      |
|--------------|----------------------------|
|italic        | *italic*                   |
|bold          | **bold**                   |
|bold-italic   | ***bold-italic***          |
|strikethrough | ~~strikethrough~~          |
|underline     | __underline__              |
|color-text(1) | %{color:red}colortext%     |
|color-text(2) | %{color:#00FF00}colortext% |

text_deco

Text alignment

MdXaml support text-alignment. It is base on textile.

  • If put 'p<.' to paragraph-start, MdXaml arrange paragraph left-side.
  • If put 'p>.' to paragraph-start, MdXaml arrange paragraph right-side.
  • If put 'p=.' to paragraph-start, MdXaml arrange paragraph center.

Example

p<. arrange paragraph left-side.

p>. arrange paragraph right-side.

p=. arrange paragraph center.  
p=>. inner paragraph is ignored.

text_alignment

list

#### alphabet-ol [original enhance]
a. one
b. two

#### alphabet-ol [original enhance]
A. one
B. two

#### roman-ol [original enhance]
i, one
ii, two

#### roman-ol [original enhance]
I, one
II, two

list

Table

linebreak

MdXaml treats '\n' which is contained in the cell of tables as linebreak. If you don't want it, use escape sequence.

Example

| column1\nwith linebreak     | column2       |
|-----------------------------|---------------|
| text\nwith\nlinebreak       | text\\nnobreak|

view1

colspan or rowspan

MdXaml extends table format to explain colspan and rowspan. Its format is Influenced by textile.

Example

| column1     | column2       | column4       | column5  |
|-------------|---------------|---------------|----------|
|\2. colspan2                 |/3\2. row3&col2           |
|/2. rowspan2 |<. left-algn   |
              |=. center-algn |
| hoge        |>. right-align | hoge          | hoge     |

view1

Format

Type any character between pipe(|) and period(.), and MdXaml parse it.

char details
\ column span: after character parse as the number as columns.
/ row span: after character parse as the number as rows.
< left alignment
> right alignment
= center

If you don't want to parse, type space after pipe(|).

| column1     | column2       |
|-------------|---------------|
|\2. parse as column span     |
| \2. ignore  | hoge          |

view2

To make table easily, We provide 'MarkdownTableBuilder.ods'. With LibreOffice It can open it and execute macros.

how to