invicticide / fractive

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

Section link shorthand #51

Open NQNStudios opened 6 years ago

NQNStudios commented 6 years ago

What happened

In Twine, a link to another section can be written simply, as [[other section]] if the section being linked to is named the same as the link text. Maybe we could implement the same syntax as a shorthand for that situation, or something like [Link]({@}) for internal consistency, but that's more awkward.

NQNStudios commented 6 years ago

Another thing that could be nice: detecting that if the contents of a Markdown link destination aren't a proper web URL, they're most likely a section name.

So in this sample, the usual macro syntax could be skipped at the convenience of the story dev:

{{Start}}

Sometimes it's tough to type `{@}` every time, so I write my links like this: [Take me to another section](AnotherSection)

{{AnotherSection}}

It's a less responsible way to do things, but it's still nice!