Post chars are defined in (nth 1 org-emphasis-regexp-components) in emacs org. When I initially adapted the list of chars for go, I failed to check how it's actually used (further down in org.el): (string-match (concat "[" (nth 1 erc) "\n]") (char-to-string (char-after (point)))) Due to the surrounding [] the `\\` in '("-[:space:]('\"{" "-[:space:].,:!?;'\")}\\[" "[:space:]" "." 1) is actually a literal backslash, not an escape of the opening bracket I guess. I'm not in the mood for thinking any harder about this, so let's hope this is right. yolo.
2.6 KiB
2.6 KiB
- 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 /
- emphasis ending with a "difficult" multibyte character 习
- emphasis just before
explict line break
plus more emphasis
- ->/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
<h1>hello</h1>
- inline export blocks
hello
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 subscriptsub and ^{} for superscriptsuper
-
links
- regular link https://example.com link without description
- regular link example.com link with description
- regular link to a file (image)
- regular link to an org file (extension replaced with html) /OrgWiki/go-org-orgwiki/src/commit/f27340ed5e7f5cd10cb996eea9135246a5b689f7/org/testdata/inline.org / /OrgWiki/go-org-orgwiki/src/commit/f27340ed5e7f5cd10cb996eea9135246a5b689f7/org/testdata/inline.org
- regular link to a file (video)
- regular link to http (image)
- regular link to https (image)
- regular link with image as description
- regular link enclosed in [] [https://www.example.com] [example.com]
- 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
- example:
- /OrgWiki/go-org-orgwiki/src/commit/f27340ed5e7f5cd10cb996eea9135246a5b689f7/org/testdata/example
- description
- (w/o tag /OrgWiki/go-org-orgwiki/src/commit/f27340ed5e7f5cd10cb996eea9135246a5b689f7/org/testdata/example_interpolate_s)
- (w/o tag /OrgWiki/go-org-orgwiki/src/commit/f27340ed5e7f5cd10cb996eea9135246a5b689f7/org/testdata/example_interpolate_h)
-
#+MACROs
:yolo
-
org entities
\pi
&\pi{}
=> π & π\angle{}
&\angle
&\ang
>
∠ ∠ ∠