# IOCCC markdown best practices The IOCCC makes extensive use of [markdown](https://daringfireball.net/projects/markdown/). For example, we [submitting to the IOCCC](faq.html#submit), we have people to submit remarks about entry in markdown format. Every [winning IOCCC entry](years.html) uses a `README.md` markdown file as the basis for forming the `index.html` web page for that entry. All generated HTML pages on the [Official IOCCC web site](https://www.ioccc.org/index.html) start with some markdown content. See the [markdown syntax](https://www.markdownguide.org/basic-syntax) guide. See also [CommonMark Spec](https://spec.commonmark.org/current/). Nevertheless, the IOCCC does have certain practices that we ask authors to follow. Some these relate to use of markdown directly, others relate to injecting HTML into the markdown file. In particular there are things we ask people to please do **NOT** use in markdown files: ## Do NOT use name attributes in HTML a tags Please do **NOT** use the HTML construct: ``` ... <=== no thank you ``` as those are **NOT** part of the HTML 5 standard. Instead use: ```
```
For example, instead of:
```
 <=== no thank you
```
use this HTML:
```
```
The problem goes beyond the fact that `pandoc(1)` generates problematic
HTML from the markdown image construct, the resulting HTML does NOT
have `width` and `height` information so browsers have to slow down
on rendering text around the image until it can internally determine
the image size.
## Do NOT use markdown style horizontal lines
Please do **NOT** use `**---**`-style lines in markdown to create horizontal
lines or to separate sections.
Unless something is inside a markdown code block, do NOT start a
line with 3 or more dashes (`-`s).
Such causes `pandoc(1)` to generate `
<=== no thank you
```
Instead use just:
```
```
etc.
## Do NOT end markdown links in "))"
Please do **NOT** end a markdown links with a double closed parenthesis "))".
Markdown links that end in "))" complicate parsing and sometimes lead
to incorrect URLs or file paths.
Instead of:
```
[some text](https://example.com/foo_(bar)) <=== no thank you
```
Use:
```
[some text](https://example.com/foo_(bar))
```
Instead of:
```
This thing, ([some text](some/path)), is NOT ideal. <=== no thank you
```
Use:
```
This thing, [some text](some/path), is better.
```
## Do NOT place text on the next line after a markdown code block
Please do **NOT** place text on the next line after a markdown code block.
Instead, place a blank line after the end of a markdown code block
as this makes it easier to detect when markdown code blocks are
NOT properly indented.
Instead of:
````
```
int
main(int foo)
{
return foo;
}
```
C compilers cannot be given a -Wno-main-arg-errors flag. <=== no thank you
````
Use:
````
```
int
main(int foo)
{
return foo;
}
```
C compilers cannot be given a -Wno-main-arg-errors flag.
BTW: note the blank line after the code block.
````
## Do NOT put "("s or ")"s in markdown link titles
Please do **NOT** use parenthesis inside the markdown link titles.
Instead of:
```
[some (text)](https://example.com/cyrds) <=== no thank you
```
Use:
```
[some (text)](https://example.com/cyrds)
```
Instead of:
```
[ls(1)](https://example.com/ls-man-page.1) <=== no thank you
```
Use:
```
[ls(1)](https://example.com/ls-man-page.1)
```