I'm looking for a free software (maybe even open-source) which can handle similar effect to **Paragraph Shading** in **InDesign** - which is working magnificent.

InDesign example:
-----------------

[![indesign](https://i.stack.imgur.com/4R6Ae.jpg)](https://i.stack.imgur.com/4R6Ae.jpg)

Heading 2 is based on Heading 1 and only Font Size is changed. This is what I'm after.

Affinity Publisher example:
---------------------------

[![publisher](https://i.stack.imgur.com/e2mGW.jpg)](https://i.stack.imgur.com/e2mGW.jpg)

Publisher is not to shabby. It has Decoration option which is great to the point when Font Size change. It's passable though.

What else I've tried:
---------------------

* **Scribus** - not even close. There is highlight without any padding/inset.
* **InkScape** - no options.
* **Gimp** - as above.
* **Krita** - as above.
* **LibreOffice Writer/Draw** - Writer has nice hackish solution by adding borders with the same color as highlight with inset. BUT. Adding images, page backgrounds and cropping them in Writer is pure nightmare. Worth mentioning is a fact that this do not work in Text Frame but it works ok in... Shape. So it's a no go. Draw dosen't have this options.
* **Google Slides** - yes, I've tried it. 

[![slides](https://i.stack.imgur.com/8fbDJ.jpg)](https://i.stack.imgur.com/8fbDJ.jpg)

I've also checked **Gravit**, **Canva**, **Vectr** and gazillion more different apps. I'm stunned that such simple option is so hard to achieve. [Even in CSS it's not straightforward.](https://css-tricks.com/multi-line-padded-text/)

Am I missing something obvious in here?