Turns out Org mode supports image links natively and we don't have to go out of spec! From https://orgmode.org/manual/Images-in-HTML-export.html: [...] if the description part of the Org link is itself another link, such as ‘file:’ or ‘http:’ URL pointing to an image, the HTML export back-end in-lines this image and links to [...]
44 lines
1.9 KiB
Text
44 lines
1.9 KiB
Text
- /emphasis/ and a hard line break \\
|
|
see? \\
|
|
also hard line breaks not followed by a newline get ignored, see \\
|
|
- /.emphasis with dot border chars./
|
|
- /emphasis with a slash/inside/
|
|
- /emphasis/ followed by raw text with slash /
|
|
- ->/not an emphasis/<-
|
|
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
|
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
|
- *bold string with an *asterisk inside*
|
|
- inline source blocks like src_html[:eval no]{<h1>hello</h1>}
|
|
- inline export blocks @@html:<h1>hello</h1>@@
|
|
- =multiline emphasis is
|
|
supported - and respects MaxEmphasisNewLines (default: 1)=
|
|
/so this
|
|
is emphasized/
|
|
|
|
/but
|
|
this
|
|
is
|
|
not emphasized/
|
|
- empty emphasis markers like ++ // __ and so on are ignored
|
|
- use _{} for subscript_{sub} and ^{} for superscript^{super}
|
|
- links
|
|
1. regular link [[https://example.com]] link without description
|
|
2. regular link [[https://example.com][example.com]] link with description
|
|
3. regular link to a file (image) [[file:my-img.png]]
|
|
4. regular link to a file (video) [[my-video.mp4]]
|
|
5. regular link to http (image) [[http://placekitten.com/200/200#.png]]
|
|
6. regular link to https (image) [[https://placekitten.com/200/200#.png]]
|
|
7. regular link with image as description [[https://placekitten.com][https://placekitten.com/200/200#.png]]
|
|
8. regular link enclosed in [] [[[https://www.example.com]]] [[[https://www.example.com][example.com]]]
|
|
9. auto link, i.e. not inside =\[[square brackets]\]= https://www.example.com
|
|
- timestamps
|
|
- <2019-01-06 Sun>
|
|
- <2019-01-06 Sun>
|
|
- <2019-01-06 Sun 18:00>
|
|
- <2019-01-06 Sun 18:00 +1w>
|
|
- <2019-01-06 Sun 18:00>
|
|
- <2019-01-06 Sun 18:00 +1w>
|
|
- =#+LINK= based links: [[example:foobar]]
|
|
#+LINK: example https://www.example.com/
|
|
- =#+MACROs=: {{{headline(yolo)}}}
|
|
#+MACRO: headline @@html:<h1>$1</h1>@@
|