mundschenk-at / php-typography

A PHP library for improving your web typography.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maybe not working with html heading tags?

Lennso opened this issue · comments

See this first: nystudio107/craft-typogrify#78

I use typogrify plugin for craft which uses php-typography:
{{ entry.editor | typogrify }}

My typogrify.php config:

"set_hyphenation" => true,
"set_hyphenate_headings" => true

My (german-text) html output:

<div>
<h6>Krank werden kann Jede:r</h6>
<h2>Warum brauche ich eine private Krankentagegeldversicherung?</h2>
<p>Die Krankentagegeld­&shy;versicherung schützt Sie gegen den Verdienstausfall bei Arbeits­&shy;unfähigkeit, soweit diese auf einer Krankheit oder einem Unfall beruht. Die Versicherung zahlt ab vereinbartem </p>
</div>

Hyphenation for my p-element is working, but not for the headings. Could it have something to do with this package?

I'd need your full configuration to be sure, but most likely you have either enabled dewidowing or are skipping the contents of <h1> and <h2>.

Is this still relevant, @Lennso?

Apparently not.