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

Paragraph text is truncated after a link followed by a stop (.) #88

Open
e-serranor opened this issue Sep 24, 2021 · 0 comments
Open

Paragraph text is truncated after a link followed by a stop (.) #88

e-serranor opened this issue Sep 24, 2021 · 0 comments

Comments

@e-serranor
Copy link

e-serranor commented Sep 24, 2021

Description

a tags followed by a dot character cause the text following the dot to be omitted from the result.

Cases

Working as expected:
Consider this input:

<p>
The quick brown fox <a href="#">jumps</a> over the lazy dog.
</p>

The output is, as expected:

%p
  The quick brown fox
  %a{:href => "#"} jumps
  over the lazy dog.

Bug:
But if a dot follows the a element, as in the following input:

<p>
The quick brown fox <a href="#">jumps</a>. Over the lazy dog.
</p>

The output is missing everything after the dot:

%p
  The quick brown fox
  = succeed "." do
    %a{:href => "#"} jumps

Additional information

html2haml --version
html2haml 2.2.0

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