Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closing tags of li and ul eaten by data-simple-tooltip attribute #6

Open
Un1Gfn opened this issue Dec 20, 2023 · 1 comment
Open

closing tags of li and ul eaten by data-simple-tooltip attribute #6

Un1Gfn opened this issue Dec 20, 2023 · 1 comment

Comments

@Un1Gfn
Copy link

Un1Gfn commented Dec 20, 2023

wikitext input

* {{#simple-tooltip: ListItem | TooltipText }}
= Subtitle =

expected output (some parts are omitted)

<div class="mw-parser-output">
  <ul>
    <li>
      <span class="simple-tooltip simple-tooltip-inline" data-simple-tooltip="TooltipText">ListItem</span>
    </li>
  </ul>
  <h1>
    <span class="mw-headline" id="Subtitle">Subtitle</span>
  </h1>
</div>

actual output

<div class="mw-parser-output">
  <ul>
    <li>
      <span class="simple-tooltip simple-tooltip-inline" data-simple-tooltip="<p>TooltipText</li></ul><p></p>">ListItem</span>
      <p class="mw-empty-elt"></p>
      <h1>
        <span class="mw-headline" id="Subtitle">Subtitle</span>
      </h1>
    </li>
  </ul>
</div>
@Un1Gfn Un1Gfn changed the title </li></ul> eaten by data-simple-tooltip="" closing tags of li and ul eaten by data-simple-tooltip attribute Dec 20, 2023
@Un1Gfn
Copy link
Author

Un1Gfn commented Dec 26, 2023

As shown in the screenshot, the "Subtitle" is indented.
It should NOT be indented.

Screenshot 2023-12-26 at 12 57 09

As shown in the screenshot, the "Subtitle" is indented.
It should NOT be indented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant