#28 Paragraph detection and macros

open
nobody
None
5
2005-03-29
2005-03-29
Even Holen
No

When parsing elements, they are marked as inline or
block elements. A paragraph is in the end recognised as
either a line starting with text or with an inline element.

When parsing macros, these are inserted as a raw entity
which defaults to block elements. In most cases this is
correct, as macros returns lists or several paragraphs
which are blocks.

But macros to be used inline, i.e. Anchor and TitleSearch
{oneline}, this deviates from the default. TitleSearch is
especially tricky since it could return both block
elements, and inline elements.

Suggestion to solution: Let every macro return the entity
itself, instead of doing this within macro_token. This
would allow for each macro to do whatever it wants. It
would however change the macro definitions slightly...

Discussion