fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
159 stars 14 forks source link

Having 2 dividers does not work with the Symfony YAML parser #180

Open tobimori opened 6 months ago

tobimori commented 6 months ago

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

tobimori commented 6 months ago

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

fabianmichael commented 5 months ago

@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?

tobimori commented 5 months ago

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

fabianmichael commented 5 months ago

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