Working with data as text (dictionary)

believe me, what I posted is exaclty what I have done based on a standard hugo new theme
adding the data file and your shortcode adjusted.

So there’s something different at your side.

If you want some to check that it does not make sense to play code-snipped ping pong. you’ll have to either share your site or prepare a minimal reproducible example. incl all the config and layouts…

p.s. subitems work fine, too

Summary
word:
  - id: word1
    definition: |
      Multi-line text with possible emphasis and items

      1. item **one**
         1. hello
         2. world
      2. item **two**
         - bullet
         - lucky luke

      that must be kept.
  - id: word2
    definition: |
      More text.