johannschopplich / kirby-punctuation-section

✒️ Insert punctuation marks into your text with a single click
https://kirbyseo.com
MIT License
33 stars 2 forks source link

fix: multi-language translation and container block style #6

Closed grommasdietz closed 11 months ago

grommasdietz commented 11 months ago

After the last update the content of the section rendered wrong in content and style, when using a setup with multilingual labels and help, like:

type: punctuation
headline:
  en: Whitespaces
  de: Weißräume
fieldsets:
  - category:
    label:
      en: No Break Space
      de: Geschütztes Leerzeichen
    help:
      en: '<span class="color--half hidden-characters">Alex<span class="color--full"> </span>Doe</span>'
      de: '<span class="color--half hidden-characters">Alex<span class="color--full"> </span>Mustername</span>'
    chars:
      - " "

Before:

kirby-punctuation-section-01-before

After:

kirby-punctuation-section-02-after
johannschopplich commented 11 months ago

Thanks for the PR! 👏