kirby-markdown-field icon indicating copy to clipboard operation
kirby-markdown-field copied to clipboard

Having 2 dividers does not work with the Symfony YAML parser

Open tobimori opened this issue 1 year ago • 4 comments

CleanShot 2024-02-09 at 17 35 24@2x

tobimori avatar Feb 09 '24 16:02 tobimori

This works, but is not documented anywhere: CleanShot 2024-02-10 at 00 20 26@2x

tobimori avatar Feb 09 '24 23:02 tobimori

@tobimori I just tried Kirby 4.1.1 and it worked with this blueprint. Please check your indentation:

fields:
  ta:
    type: markdown
    buttons:
      headlines:
        - h1
      - divider
      bold: ** # or `__`
      - divider
      link: null # or `markdown` or `kirbytext`

Kirby 4 seems to use the Symfony YAML parser (https://github.com/getkirby/kirby/blob/main/composer.json#L49) by default, did I miss anything?

fabianmichael avatar Mar 01 '24 10:03 fabianmichael

You'll have to enable it manually in the config still: https://getkirby.com/docs/reference/system/options/yaml

tobimori avatar Mar 01 '24 10:03 tobimori

Okay, then it’s probably just a docs issue, will look into that.

fabianmichael avatar Mar 01 '24 10:03 fabianmichael