Simre1 / neorg-haskell-parser

MIT License
91 stars 7 forks source link

Detached Modifier Suffix #22

Open Simre1 opened 1 year ago

Simre1 commented 1 year ago

Relevant Layer

Layer: 3 Headings of the relevant sections in the specification: ** Detached Modifier Suffix

Feature description Allows detached modifiers like lists to contain complex Neorg constructs like tags.

- :
  This is part of the list item.
  @code lua
  print("This is also a part of the list item")

  -- Despite the fact that there is a double newline dividing the `print` statement and this
  -- comment, it is not a paragraph break, therefore it does not terminate the slide.
  @end

You can already nest such blocks without using the detached modifier suffix with the current parser. We will need to figure out how to proceed with this.