# [P]oker's M[a]de-up [M]arkup [L]anguage { PaML is a markup language based heavily on random Markdown flavours and my needs for easier editing of pokerfacowaty.com; it is intended to be used for rendering HTML. } { At its current state, PaML elements have set classes for styling and the reason for the choice of classes is simply whatever names I'm using for pokerfacowaty.com's styling. I would like to have custom classes / ids in the future, but that's going to require a lot of additional work. } { PaML can be converted to HTML using [paml2html](https://github.com/PokerFacowaty/paml2html). } { You can also track the development of both the converter and the language on [this Vikunja page!](https://vikunja.pokerfacowaty.com/share/xSbQeLXtVLmTpqdniQhIjmzLUgdxJwtpUStgIbya/auth) } { This entire website was initially written in PaML. Find its source [here](./docs.txt) (saved in .txt so that your browser can display it). } ## Text decorations - Links ``[text](link)`` - Bold ``**Text**`` - Italics ``__Text__`` - Inline code ``two ` backticks at the start and at the end`` ## Headings { Headings in PaML use the Markdown convention. ``# Text`` becomes ``
`` tags, multiple spaces are replaces with just a single one. New lines are replaced with as kept as ``
`` tags.
}
### Just text
```/* Example: */
{
text
}
```
```/* HTML: */
text
text
text
```
#### Result:

## Code
{
Code as a separate element is split into code lines and code blocks. Code line is simply a code block that has only a single line. Separating the two allows for different styling in terms of e.x. text wrapping.
}
{
Note: inline code is treated as text decorator and can be found at the top of this document.
}
{
**Important: The three backticks with optional comments at the start and the three backticks at the end of code have to be on separate lines.** Some examples below use three quotation marks instead of three backticks for presentation purposes.
}
### Code line
```/* Example: */ /** The three quotation marks at the end should be replaced with three backticks **/
```/* Auto connect */ /** Connects, small comment **/
server add -ssl -auto -network {network} {link} {port}
'''
```
```/* HTML: */
server add -ssl -auto -network {network} {link} {port}
for x in "abcd":
if x == "c":
break
print(x) # a, b
for x in "abcd":
if x == "c":
continue
print(x) # a, b, d
| Head2 | 2Head |
|---|---|
| text | text2 |
| a | b |
| c | d |
server add -ssl -auto -network {network} {link} {port}
/network add -autosendcmd "/msg nickserv identify {password} ;wait 2000" {network}
server add -ssl -auto -network {network} {link} {port}
/network add -autosendcmd "/msg nickserv identify {password} ;wait 2000" {network}
for x in "abcd":
if x == "c":
break
print(x) # a, b
for x in "abcd":
if x == "c":
continue
print(x) # a, b, d
is a fantastic library