Re: Text markup and TeX-style LaTeX fragments spanning more than three lines

2023-08-28 Thread Ihor Radchenko
"Tom Alexander"  writes:

> The documentation for both text markup and TeX-style LaTeX fragments states 
> that their contents (CONTENTS for text markup, BODY for TeX-style LaTeX 
> fragments) cannot span more than three lines, but I'm not seeing such 
> limitation for either in practice. I don't know if this is a documentation 
> error or a parser error.

The parser is the source of truth.
Fixed, in the worg syntax page.
https://git.sr.ht/~bzg/worg/commit/699811bc

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Text markup and TeX-style LaTeX fragments spanning more than three lines

2023-08-27 Thread Tom Alexander
The documentation for both text markup and TeX-style LaTeX fragments states 
that their contents (CONTENTS for text markup, BODY for TeX-style LaTeX 
fragments) cannot span more than three lines, but I'm not seeing such 
limitation for either in practice. I don't know if this is a documentation 
error or a parser error.

Documentation text markup: 
https://orgmode.org/worg/org-syntax.html#Emphasis_Markers
Documentation LaTeX fragments: 
https://orgmode.org/worg/org-syntax.html#LaTeX_Fragments

Test document text markup:
```
foo *bar
baz* lorem

text *markup
cannot
span* more

than *three
lines.
foo
bar* baz

foo *bar \\
baz \\
lorem \\
ipsum \\
dolar* cat
```

Test document TeX-style LaTeX fragments:
```
$foo
bar
baz
lorem
ipsum
dolar$
```

--
Tom Alexander