github rupor-github/fb2cng v1.1.7

latest releases: v1.2.3, v1.2.2, v1.2.1...
one month ago

New features

Allow negative margins through KFX pipeline

  • Removed negative margin clamping from CSS converter; values now pass
    through the entire pipeline to the final output
  • Fixed filterTagDefaultsIfInherited to filter any tag-default margin
    (not just zero) when inherited container margin is non-zero, preventing
    tag-level negative margins from overriding accumulated container margins
    (e.g., poem 3em + verse 2em = 5em was being replaced by p's -0.533em)
  • Updated tests: TestNegativeMarginPassthrough, added tests for tag-default
    filtering and negative margin preservation at output

Note: custom CSS with negative horizontal margins on p elements may cause visual artifacts on
Kindle due to renderer behavior. The default CSS is not affected.

Full Changelog: v1.1.6...v1.1.7

Don't miss a new fb2cng release

NewReleases is sending notifications on new releases.