Lists containing paragraphs (i.e. blank lines between multiple lists under a heading) break [intern] parsing #10

Open
opened 2025-05-22 13:48:46 +02:00 by dam · 0 comments
Owner

This is unexpected behavior.

Example:

# Protokoll vom 32. Februar 1970

## Anwesende:
- Informatik: Foo
- Gäste: Bar, Baz

## TOP 0: Foo

- Lorem Ipsum
    - Dolor sit amet
- [intern] consetetur sadipscing elitr,
    - sed diam nonumy
    - eirmod tempor invidunt
- ut labore et dolore
- magna aliquyam erat
    - sed diam voluptua.

## TOP 1: Bar

- Jemand musste Josef K. verleumdet haben
    - denn ohne dass er etwas Böses getan hätte
    - wurde er eines Morgens verhaftet.
- [intern] »Wie ein Hund!« sagte er,
    - es war,
    - als sollte die Scham ihn überleben.

- Als Gregor Samsa eines Morgens
- aus unruhigen Träumen erwachte,
    - fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt.

gets converted to the following wikitext:

<proceeding>
    <?xml version="1.1" encoding="UTF-8"?>
    <protokoll>
        <datum>1970-02-32</datum>
        <anwesende>
            <ul>
                <li>
                    <h4>Informatik</h4>Foo</li>
<li>
                    <h4>Gäste</h4>Bar, Baz</li>
            </ul>
        </anwesende>
        <entwurf />
        <top>
            <titel>Foo</titel>
            <text>
                <ul>
                    <li>Lorem Ipsum<ul>
                            <li>Dolor sit amet</li>
                        </ul></li>
                    <li>
                        <intern>[intern] consetetur sadipscing elitr,<ul>
                                <li>sed diam nonumy</li>
                                <li>eirmod tempor invidunt</li>
                            </ul></intern>
                    </li>
                    <li>ut labore et dolore</li>
                    <li>magna aliquyam erat<ul>
                            <li>sed diam voluptua.</li>
                        </ul></li>
                </ul>
            </text>
        </top>
        <top>
            <titel>Bar</titel>
            <text>
                <ul>
                    <li><p>Jemand musste Josef K. verleumdet haben</p><ul>
                            <li>denn ohne dass er etwas Böses getan hätte</li>
                            <li>wurde er eines Morgens verhaftet.</li>
                        </ul></li>
                    <li><p>
                            <intern>[intern] »Wie ein Hund!« sagte er,</intern>
                        </p><ul>
                            <li>es war,</li>
                            <li>als sollte die Scham ihn überleben.</li>
                        </ul></li>
                    <li><p>Als Gregor Samsa eines Morgens</p></li>
                    <li><p>aus unruhigen Träumen erwachte,</p><ul>
                            <li>fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt.</li>
                        </ul></li>
                </ul>
            </text>
        </top>
    </protokoll>
</proceeding>

although the second <intern>-Tag should also span the whole sub-list.

This is unexpected behavior. Example: ```md # Protokoll vom 32. Februar 1970 ## Anwesende: - Informatik: Foo - Gäste: Bar, Baz ## TOP 0: Foo - Lorem Ipsum - Dolor sit amet - [intern] consetetur sadipscing elitr, - sed diam nonumy - eirmod tempor invidunt - ut labore et dolore - magna aliquyam erat - sed diam voluptua. ## TOP 1: Bar - Jemand musste Josef K. verleumdet haben - denn ohne dass er etwas Böses getan hätte - wurde er eines Morgens verhaftet. - [intern] »Wie ein Hund!« sagte er, - es war, - als sollte die Scham ihn überleben. - Als Gregor Samsa eines Morgens - aus unruhigen Träumen erwachte, - fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt. ``` gets converted to the following wikitext: ~~~xml <proceeding> <?xml version="1.1" encoding="UTF-8"?> <protokoll> <datum>1970-02-32</datum> <anwesende> <ul> <li> <h4>Informatik</h4>Foo</li> <li> <h4>Gäste</h4>Bar, Baz</li> </ul> </anwesende> <entwurf /> <top> <titel>Foo</titel> <text> <ul> <li>Lorem Ipsum<ul> <li>Dolor sit amet</li> </ul></li> <li> <intern>[intern] consetetur sadipscing elitr,<ul> <li>sed diam nonumy</li> <li>eirmod tempor invidunt</li> </ul></intern> </li> <li>ut labore et dolore</li> <li>magna aliquyam erat<ul> <li>sed diam voluptua.</li> </ul></li> </ul> </text> </top> <top> <titel>Bar</titel> <text> <ul> <li><p>Jemand musste Josef K. verleumdet haben</p><ul> <li>denn ohne dass er etwas Böses getan hätte</li> <li>wurde er eines Morgens verhaftet.</li> </ul></li> <li><p> <intern>[intern] »Wie ein Hund!« sagte er,</intern> </p><ul> <li>es war,</li> <li>als sollte die Scham ihn überleben.</li> </ul></li> <li><p>Als Gregor Samsa eines Morgens</p></li> <li><p>aus unruhigen Träumen erwachte,</p><ul> <li>fand er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt.</li> </ul></li> </ul> </text> </top> </protokoll> </proceeding> ~~~ although the second `<intern>`-Tag should also span the whole sub-list.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
FS-InfMath/FS-Protokoll#10
No description provided.