-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unintended non-breaking-space inserted at last line if it has a number at the end #17
Comments
That's an issue with the widont correction which I think is fixed in the upcoming version. |
In the resulting markup that is, not in the Markdown source. |
Doesn˚t look like there is. Here’s the exact result with indents and the surrounding markup: <div>
<h4>
<span>Jahreshauptversammlung</span>
</h4>
<p>
<strong>Aula der Parkschule</strong>
<br>
Rathenauplatz 4
</p>
</div> |
As a workaround, you could set custom defaults in your config file and exclude the widont rule there, see https://github.com/hananils/kirby-typographer?tab=readme-ov-file#options. The options is named kirby-typographer/lib/Typographer.php Lines 31 to 45 in e6acc23
|
Thanks Nils! I was expecting kirby-htmldoc to get rid of all the whitespace, after all. Will have to look into that. |
The next version of Typographer will collapse and trim whitespace where appropriate when applying the widont rule so this should not longer be an issue 👍 |
Kirby 4.1.0
hananils/typographer 0.2.0
Using
$termin->text()->typographer('block')
in a template I get the following results:—>
It seems the number at the end is triggering the non-breaking-space at the beginning of the line. When doing multiple paragraphs, it only affects the last one:
—>
The text was updated successfully, but these errors were encountered: