# Text Notation Rules

- Markdown Style
- PukiWiki Style
- Text

## Markdown Style

You can use a format similar to GitHub Flavored Markdown.

Heading | # Heading 1 ## Heading 2 ### Heading 3 #### Heading 4 ##### Heading 5 ###### Heading 6 | There are 6 levels.
Heading | Heading 1 ========= Heading 2 --------- |
Bullet List | - List - List + List + List * List * List - List - Nested - Nested |
Numbered List | 1. List 2. List 1. List 1. Nested 2. Nested |
Task List | - [ ] List - [x] List 1. [ ] List 2. [x] List |
Quote | > Quote >> Quote >>> Quote |
Preformatted Text (Code Block) | Code Code | Insert 4 spaces at the beginning of the line.
Preformatted Text (Code Block) | ``` Code Code ``` |
Horizontal Line | *** --- ___ |
Emphasis (Italic) | *Italic* _Italic_ | When using _, spaces or line breaks are required before and after.
Emphasis (Bold) | **Bold** __Bold__ | When using __, spaces or line breaks are required before and after.
Underline | <ins>Underlined Text</ins> |
Strikethrough | ~Strikethrough~ ~~Strikethrough~~ |
Superscript | <sup>Superscript</sup> |
Subscript | <sub>Subscript</sub> |
Footnote | [^Label]: Footnote [^Label] | Define the footnote with [^Label]: and create a link to the footnote with [^Label].
Collapsible | <details open> <summary>Title</summary> <div class="details"> Details </div> </details> | <div class="details"></div> is for margin in the details part, so it can be omitted if not needed.
Link | [Name](URL "Title") [Name](URL) <URL> |
Definition Reference Link | [Label]: URL "Title" [Label] | Define the link information with [Label]: and create the link with [Label].
Link | [[Name|URL]] |
Page Link | [[Page Name]] [[Alias|Page Name]] |
Image | ![Alt Text](URL "Title") ![Alt Text](URL) | [When using local files] Save the file in the folder or subfolder where the .wiki file is located. Specify the relative path from the folder where the .wiki file is located in the URL.
Table | | Header | Header | | ------ | ------ | | Data | Data | | Data | Data | | Header | Header | | -----: | :----: | | Right | Center | | You can specify right alignment or center alignment by adding a colon in the second row.
HTML | <a href="URL">Name</a> | You can write HTML tags as they are.
Entity Reference | &copy; &#xa9; &#169; |
Comment | <!-- Comment --> |
Formula | $Formula$ $$Formula$$ ```math Formula ``` | Enabled with "default-math" or "default-all" template.
Mermaid Syntax | ```mermaid Code ``` | Enabled with "default-mermaid" or "default-all" template.
Syntax Highlighting | ```language Code ``` | Enabled with "default-syntax-highlight" or "default-all" template.

## PukiWiki Style

You can use a format similar to PukiWiki Formatting Rules.

Normally, the entered text is output as it is, but text formatting can be performed according to the following rules.

- Multiple consecutive lines are concatenated. If you write a tilde (~) at the end of the line, it will not be concatenated and will be a line break.
- Blank lines are paragraph breaks.
- If the beginning of the line starts with a tilde (~), the characters after the tilde are output. Use this when you want to write formatting characters (*, -, +, etc.) at the beginning of the line.

Heading | * Heading 1 ** Heading 2 *** Heading 3 | There are 3 levels.
Bullet List | + List ++ List +++ List | There are 3 levels.
Numbered List | - List -- List --- List | There are 3 levels.
Definition List | : Term | Description :: Term | Description ::: Term | Description | There are 3 levels.
Quote | > Quote >> Quote >>> Quote | There are 3 levels.
Preformatted Text (Code Block) | Code Code | Insert 1 space at the beginning of the line.
Horizontal Line | ---- |
Separator Line | #hr | It is a slightly shorter horizontal line.
Emphasis (Italic) | '''Italic''' |
Emphasis (Bold) | ''Bold'' |
Underline | %%%Underline%%% |
Strikethrough | %%Strikethrough%% |
Superscript | &sup(){Superscript}; |
Subscript | &sub(){Subscript}; |
Footnote | Text((Footnote)) |
Collapsible | #fold(Title){{ Details }} #fold(Title, open){{ Details }} | Adding "open" will expand the details part from the beginning.
Link | [[Name>URL]] |
Page Link | [[Page Name]] [[Alias>Page Name]] |
Image | &img(Alt Text,URL); &img(URL); | [When using local files] Save the file in the folder or subfolder where the .wiki file is located. Specify the relative path from the folder where the .wiki file is located in the URL.
Auto Link | URL | http:// and https:// are automatically linked. If the file extension of the link destination is .gif, .jpeg, .jpg, or .png, it will be displayed as an image.
Table | |~Header|~Header|h |Data |Data | |Data |Data | |Footer |Footer |f |LEFT: Left|CENTER: Center|RIGHT: Right| |COLOR(#000):BGCOLOR(#fff):Data|Data|Data| |BOLD:SIZE(20):||c |Data|Data| |Data|Data| |~Header|~Header|h |>|CENTER:Data| |Data|Data| |~|Data| | Writing "h" at the end of the line makes it a header row (thead). Writing "f" at the end of the line makes it a footer row (tfoot). Writing "c" at the end of the line makes it a formatting row. Adding "~" at the beginning of the cell element makes it a header (th). You can write formatting specifications at the beginning of the cell element. Writing ">" only in the cell merges it with the right cell. Writing "~" only in the cell merges it with the above cell. The following can be used for formatting specifications: LEFT: CENTER: RIGHT: BGCOLOR(color): COLOR(color): SIZE(size): BOLD:
Table | ,Data,Data ,Data,Data ,"Data,Data" ,"Data""Data" ,Data,Data,Data ,Data,==,Data , Right, Center ,Left ,Data,Data,Data | If you write a comma (,) in the data, enclose the data in double quotes ("). If you write double quotes (") in the data enclosed in double quotes ("), write them consecutively. Writing "==" only in the cell merges it with the left cell. Writing a space to the left of the element in the cell makes it right-aligned. Writing spaces to the left and right of the element in the cell makes it center-aligned.
HTML | &html(HTML); |
Entity Reference | &copy; &#xa9; &#169; |
Alignment | LEFT: Text CENTER: Text RIGHT: Text | Align text to the left, center, or right.
Line Break | &br; |
Text Color | &color(text color, background color){text}; &color(text color){text}; |
Text Size | &size(text size){text}; |
Ruby | &ruby(ruby){text}; |
Comment | // Comment |
Formula | $Formula$ $$Formula$$ | Enabled with "default-math" or "default-all" template.

## Text

The entered text is output as it is.

Text starting with http(s):// becomes a link.