invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
38 stars 5 forks source link

Macros with empty replaceWith are not recognized. #79

Closed NQNStudios closed 6 years ago

NQNStudios commented 6 years ago

What happened

I was trying to stub out an alias. I left replaceWith and end both left to empty strings so that a section that used {alias} and {/alias} would compile. Instead, I got an error "Unrecognized macro {alias}." Then, after setting replaceWith to some value, and leaving end still empty, I got "Unrecognized macro {/alias}.

Expected behavior

We need to allow aliases to replace with empty strings.