mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-09 13:51:57 -04:00
fix(docs): reformat hfm.md
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
34b6308cee
commit
e7246f1484
1 changed files with 63 additions and 63 deletions
|
@ -8,36 +8,36 @@ These tables tell you what exactly we support in HedgeDoc 1.x (HFM 1) and HedgeD
|
||||||
## Typography
|
## Typography
|
||||||
|
|
||||||
|
|
||||||
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
||||||
|---------------|:-----:|:-----:|:-------------------:|:-----------------:|
|
| ------------- | :---: | :---: | :---------------: | :---------------: |
|
||||||
| bold | ☑️ | ☑️ | ☑️ | ☑️ |
|
| bold | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| italic | ☑️ | ☑️ | ☑️ | ☑️ |
|
| italic | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| underline | ☑️ | ☑️ | (☑️ with `<ins>`) | (☑️ with `<ins>`) |
|
| underline | ☑️ | ☑️ | (☑️ with `<ins>`) | (☑️ with `<ins>`) |
|
||||||
| strikethrough | ☑️ | ☑️ | (☑️ with `<del>`) | ☑️ |
|
| strikethrough | ☑️ | ☑️ | (☑️ with `<del>`) | ☑️ |
|
||||||
| subscript | ☑️ | ☑️ | (☑️ with `<sub>`) | (☑️ with `<sub>`) |
|
| subscript | ☑️ | ☑️ | (☑️ with `<sub>`) | (☑️ with `<sub>`) |
|
||||||
| superscript | ☑️ | ☑️ | (☑️ with `<sup>`) | (☑️ with `<sup>`) |
|
| superscript | ☑️ | ☑️ | (☑️ with `<sup>`) | (☑️ with `<sup>`) |
|
||||||
| marked | ☑️ | ☑️ | (☑️ with `<mark>`) | (☑️ with `<mark>`) |
|
| marked | ☑️ | ☑️ | (☑️ with `<mark>`) | (☑️ with `<mark>`) |
|
||||||
|
|
||||||
## Extended typography features
|
## Extended typography features
|
||||||
|
|
||||||
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
||||||
|--------------------------------|:-----:|:-----:|:----------:|:---:|
|
| ------------------------------------------- | :----------------------: | :----------------------: | :--------: | :---: |
|
||||||
| heading | ☑️ | ☑️ | ☑️ | ☑️ |
|
| heading | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| inline code | ☑️ | ☑️ | ☑️ | ☑️ |
|
| inline code | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| indented code blocks | ☑️ | ☑️ | ☑️ | ☑️ |
|
| indented code blocks | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| code block with language[^highlight] | ☑️ | ☑️ | ☑️ | ☑️ |
|
| code block with language[^highlight] | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| code block with extra features[^extra-code] | ☑️ | ☑️ | | |
|
| code block with extra features[^extra-code] | ☑️ | ☑️ | | |
|
||||||
| block quote | ☑️ | ☑️ | ☑️ | ☑️ |
|
| block quote | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| name tag (`[name=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
| name tag (`[name=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
||||||
| time tag (`[time=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
| time tag (`[time=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
||||||
| color tag (`[color=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
| color tag (`[color=...]`) | (☑️)[^in-bq-list] | ☑️ | | |
|
||||||
| unorderd list | ☑️ | ☑️ | ☑️ | ☑️ |
|
| unorderd list | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| ordered list | ☑️ | ☑️ | ☑️ | ☑️ |
|
| ordered list | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| task list | ☑️ | ☑️ | | ☑️ |
|
| task list | ☑️ | ☑️ | | ☑️ |
|
||||||
| defition list | ☑️ | ☑️ | | |
|
| defition list | ☑️ | ☑️ | | |
|
||||||
| emoji | [Unicode 6.1][unicode-6] | [Unicode 13][unicode-13] | | |
|
| emoji | [Unicode 6.1][unicode-6] | [Unicode 13][unicode-13] | | |
|
||||||
| [ForkAwesome][fa] | ☑️ with `<i class='fa'>` | ☑️ with shortcodes | | |
|
| [ForkAwesome][fa] | ☑️ with `<i class='fa'>` | ☑️ with shortcodes | | |
|
||||||
| LaTeX | ☑️[^mj] | ☑️[^kt] | | |
|
| LaTeX | ☑️[^mj] | ☑️[^kt] | | |
|
||||||
|
|
||||||
[^highlight]: Code blocks with a given language are rendered using syntax highlighting.
|
[^highlight]: Code blocks with a given language are rendered using syntax highlighting.
|
||||||
[^extra-code]: Several special "language" keywords can be used for rendering diagrams, charts, etc.
|
[^extra-code]: Several special "language" keywords can be used for rendering diagrams, charts, etc.
|
||||||
|
@ -47,56 +47,56 @@ These tables tell you what exactly we support in HedgeDoc 1.x (HFM 1) and HedgeD
|
||||||
|
|
||||||
## Links & Images
|
## Links & Images
|
||||||
|
|
||||||
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
||||||
|-----------------------|:-----:|:-----:|:----------------:|:----------------:|
|
| --------------------- | :---: | :---: | :--------------: | :--------------: |
|
||||||
| link | ☑️ | ☑️ | ☑️ | ☑️ |
|
| link | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| link reference | ☑️ | ☑️ | ☑️ | ☑️ |
|
| link reference | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| link title | ☑️ | ☑️ | ☑️ | ☑️ |
|
| link title | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| autolink with `<>` | ☑️ | ☑️ | ☑️ | ☑️ |
|
| autolink with `<>` | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| autolink without `<>` | ☑️ | ☑️ | | ☑️ |
|
| autolink without `<>` | ☑️ | ☑️ | | ☑️ |
|
||||||
| footnotes | ☑️ | ☑️ | | |
|
| footnotes | ☑️ | ☑️ | | |
|
||||||
| image | ☑️ | ☑️ | ☑️ | ☑️ |
|
| image | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| image with given size | ☑️ | ☑️ | (☑️ with `<img>`) | (☑️ with `<img>`) |
|
| image with given size | ☑️ | ☑️ | (☑️ with `<img>`) | (☑️ with `<img>`) |
|
||||||
| table of contents | ☑️ | ☑️ | | |
|
| table of contents | ☑️ | ☑️ | | |
|
||||||
|
|
||||||
|
|
||||||
## Structural elements
|
## Structural elements
|
||||||
|
|
||||||
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
||||||
|-------------------|:------------------------:|:------------------------:|:--------------------:|:--------------------:|
|
| ----------------- | :------------------: | :---: | :------------------: | :------------------: |
|
||||||
| table | ☑️ | ☑️ | (☑️ with `<table>`) | ☑️ |
|
| table | ☑️ | ☑️ | (☑️ with `<table>`) | ☑️ |
|
||||||
| horizontal line | ☑️ | ☑️ | ☑️ | ☑️ |
|
| horizontal line | ☑️ | ☑️ | ☑️ | ☑️ |
|
||||||
| collapsable block | (☑️ with `<details>`) | ☑️ | (☑️ with `<details>`) | (☑️ with `<details>`) |
|
| collapsable block | (☑️ with `<details>`) | ☑️ | (☑️ with `<details>`) | (☑️ with `<details>`) |
|
||||||
| Alerts | ☑️ | ☑️ | | |
|
| Alerts | ☑️ | ☑️ | | |
|
||||||
|
|
||||||
## Embeddings
|
## Embeddings
|
||||||
HFM 1 includes support for certain embeddings of external content by using the `{%keyword parameter %}` syntax. To increase the readability of the markdown code we decided that HFM 2 should just use plain links if possible.
|
HFM 1 includes support for certain embeddings of external content by using the `{%keyword parameter %}` syntax. To increase the readability of the markdown code we decided that HFM 2 should just use plain links if possible.
|
||||||
|
|
||||||
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
| Feature | HFM 1 | HFM 2 | CommonMark | GFM |
|
||||||
|--------------------------|:-----:|:------------------:|:----------:|:---:|
|
| --------------------------------------------------- | :---: | :---------------------: | :--------: | :---: |
|
||||||
| PDF (`{%pdf ... %}`) | ☑️ | removed | | |
|
| PDF (`{%pdf ... %}`) | ☑️ | removed | | |
|
||||||
| [YouTube][youtube] (`{%youtube ... %}`) | ☑️ | with plain link[^embed] | | |
|
| [YouTube][youtube] (`{%youtube ... %}`) | ☑️ | with plain link[^embed] | | |
|
||||||
| [Vimeo][vimeo] (`{%vimeo ... %}`) | ☑️ | with plain link[^embed] | | |
|
| [Vimeo][vimeo] (`{%vimeo ... %}`) | ☑️ | with plain link[^embed] | | |
|
||||||
| [Slideshare][slideshare] (`{%slideshare ... %}`) | ☑️ | removed | | |
|
| [Slideshare][slideshare] (`{%slideshare ... %}`) | ☑️ | removed | | |
|
||||||
| [Speakerdeck][speakerdeck] (`{%speakerdeck ... %}`) | ☑️ | removed | | |
|
| [Speakerdeck][speakerdeck] (`{%speakerdeck ... %}`) | ☑️ | removed | | |
|
||||||
| [GitHub Gist][gist] (`{%gist ... %}`) | ☑️ | with plain link[^embed] | | |
|
| [GitHub Gist][gist] (`{%gist ... %}`) | ☑️ | with plain link[^embed] | | |
|
||||||
|
|
||||||
[^embed]: The special syntax from HFM 1 is deprecated, but will still work in HFM 2. However, a plain link to the content should be used.
|
[^embed]: The special syntax from HFM 1 is deprecated, but will still work in HFM 2. However, a plain link to the content should be used.
|
||||||
|
|
||||||
## HTML
|
## HTML
|
||||||
Besides the basic HTML typography elements (`<p>`, `<a>`, `<b>`, `<ins>`, `<del>`) the following more special HTML elements are supported by some specification.
|
Besides the basic HTML typography elements (`<p>`, `<a>`, `<b>`, `<ins>`, `<del>`) the following more special HTML elements are supported by some specification.
|
||||||
|
|
||||||
| Feature | HedgeDocMark 1 | HedgeDocMark 2 | CommonMark | GFM |
|
| Feature | HedgeDocMark 1 | HedgeDocMark 2 | CommonMark | GFM |
|
||||||
|:-------------:|:--------------:|:--------------:|:----------:|:---:|
|
| :-----------: | :------------: | :------------: | :--------: | :---: |
|
||||||
| `<title>` | | | ☑️ | |
|
| `<title>` | | | ☑️ | |
|
||||||
| `<textarea>` | | ☑️ | ☑️ | |
|
| `<textarea>` | | ☑️ | ☑️ | |
|
||||||
| `<style>` | ☑️ | ☑️ | ☑️ | |
|
| `<style>` | ☑️ | ☑️ | ☑️ | |
|
||||||
| `<xmp>` | | | ☑️ | |
|
| `<xmp>` | | | ☑️ | |
|
||||||
| `<iframe>` | ☑️ | ☑️ | ☑️ | |
|
| `<iframe>` | ☑️ | ☑️ | ☑️ | |
|
||||||
| `<noembed>` | ☑️ | | ☑️ | |
|
| `<noembed>` | ☑️ | | ☑️ | |
|
||||||
| `<noframes>` | ☑️ | | ☑️ | |
|
| `<noframes>` | ☑️ | | ☑️ | |
|
||||||
| `<script>` | | | ☑️ | |
|
| `<script>` | | | ☑️ | |
|
||||||
| `<plaintext>` | | ☑️ | ☑️ | |
|
| `<plaintext>` | | ☑️ | ☑️ | |
|
||||||
|
|
||||||
[fa]: https://forkaweso.me/
|
[fa]: https://forkaweso.me/
|
||||||
[youtube]: https://www.youtube.com/
|
[youtube]: https://www.youtube.com/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue