Merge pull request #115 from Gusted/multiple-inline
Allow for multiple inline blocks in a paragraph
This commit is contained in:
commit
075f3bab6d
4 changed files with 9 additions and 3 deletions
|
@ -73,7 +73,7 @@ var timestampRegexp = regexp.MustCompile(`^<(\d{4}-\d{2}-\d{2})( [A-Za-z]+)?( \d
|
||||||
var footnoteRegexp = regexp.MustCompile(`^\[fn:([\w-]*?)(:(.*?))?\]`)
|
var footnoteRegexp = regexp.MustCompile(`^\[fn:([\w-]*?)(:(.*?))?\]`)
|
||||||
var statisticsTokenRegexp = regexp.MustCompile(`^\[(\d+/\d+|\d+%)\]`)
|
var statisticsTokenRegexp = regexp.MustCompile(`^\[(\d+/\d+|\d+%)\]`)
|
||||||
var latexFragmentRegexp = regexp.MustCompile(`(?s)^\\begin{(\w+)}(.*)\\end{(\w+)}`)
|
var latexFragmentRegexp = regexp.MustCompile(`(?s)^\\begin{(\w+)}(.*)\\end{(\w+)}`)
|
||||||
var inlineBlockRegexp = regexp.MustCompile(`src_(\w+)(\[(.*)\])?{(.*)}`)
|
var inlineBlockRegexp = regexp.MustCompile(`src_(\w+)(\[([^\]]*)\])?{([^}]*)}`)
|
||||||
var inlineExportBlockRegexp = regexp.MustCompile(`@@(\w+):(.*?)@@`)
|
var inlineExportBlockRegexp = regexp.MustCompile(`@@(\w+):(.*?)@@`)
|
||||||
var macroRegexp = regexp.MustCompile(`{{{(.*)\((.*)\)}}}`)
|
var macroRegexp = regexp.MustCompile(`{{{(.*)\((.*)\)}}}`)
|
||||||
|
|
||||||
|
|
6
org/testdata/inline.html
vendored
6
org/testdata/inline.html
vendored
|
@ -18,6 +18,12 @@ also hard line breaks not followed by a newline get ignored, see \\</li>
|
||||||
<h1>hello</h1>
|
<h1>hello</h1>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
</div> and this <div class="src src-inline src-schema">
|
||||||
|
<div class="highlight-inline">
|
||||||
|
<pre>
|
||||||
|
world
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
</div></li>
|
</div></li>
|
||||||
<li>inline export blocks <h1>hello</h1></li>
|
<li>inline export blocks <h1>hello</h1></li>
|
||||||
<li><code class="verbatim">multiline emphasis is
|
<li><code class="verbatim">multiline emphasis is
|
||||||
|
|
2
org/testdata/inline.org
vendored
2
org/testdata/inline.org
vendored
|
@ -11,7 +11,7 @@
|
||||||
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
||||||
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
||||||
- *bold string with an *asterisk inside*
|
- *bold string with an *asterisk inside*
|
||||||
- inline source blocks like src_html[:eval no]{<h1>hello</h1>}
|
- inline source blocks like src_html[:eval no]{<h1>hello</h1>} and this src_schema[:eval no]{world}
|
||||||
- inline export blocks @@html:<h1>hello</h1>@@
|
- inline export blocks @@html:<h1>hello</h1>@@
|
||||||
- =multiline emphasis is
|
- =multiline emphasis is
|
||||||
supported - and respects MaxEmphasisNewLines (default: 1)=
|
supported - and respects MaxEmphasisNewLines (default: 1)=
|
||||||
|
|
2
org/testdata/inline.pretty_org
vendored
2
org/testdata/inline.pretty_org
vendored
|
@ -11,7 +11,7 @@
|
||||||
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
||||||
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
||||||
- *bold string with an *asterisk inside*
|
- *bold string with an *asterisk inside*
|
||||||
- inline source blocks like src_html[:eval no]{<h1>hello</h1>}
|
- inline source blocks like src_html[:eval no]{<h1>hello</h1>} and this src_schema[:eval no]{world}
|
||||||
- inline export blocks @@html:<h1>hello</h1>@@
|
- inline export blocks @@html:<h1>hello</h1>@@
|
||||||
- =multiline emphasis is
|
- =multiline emphasis is
|
||||||
supported - and respects MaxEmphasisNewLines (default: 1)=
|
supported - and respects MaxEmphasisNewLines (default: 1)=
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue