I'm writing a tool that processes mixed Djot and Markdown. If I parse Djot and put an ID above a heading, it ends up on the section tag as a parent of the heading. But if I parse Markdown, the ID ends up on the heading itself.
This isn't a problem per se, but I was surprised because I expected Djot to put its AST in roughly the same shape regardless of input format. I suppose Markdown doesn't try to put its content in a section structure at all. Feel free to close if this is expected, or consider documenting the differences.
I'm writing a tool that processes mixed Djot and Markdown. If I parse Djot and put an ID above a heading, it ends up on the
section
tag as a parent of the heading. But if I parse Markdown, the ID ends up on the heading itself.This isn't a problem per se, but I was surprised because I expected Djot to put its AST in roughly the same shape regardless of input format. I suppose Markdown doesn't try to put its content in a section structure at all. Feel free to close if this is expected, or consider documenting the differences.