vilcans / screenplain

Write your screenplay in plain text and run it through this program to make it look good
MIT License
164 stars 29 forks source link

Support parsing of synopses #59

Open lenormf opened 4 years ago

lenormf commented 4 years ago

The reference[1] defines synopses as follows:

Synopses are purely optional tools for the writer's outlining
and organizational process. They are ignored in formatted
output.

This commit makes the Foutain parser aware of them, even though the export classes ultimately ignore them.

[1] https://fountain.io/syntax#section-overview

vilcans commented 4 years ago

What does this patch do? The parser already supports synopses (although it's called synopsis, as that is the singular form of synopses; I just noticed that the incorrect plural form "synopsises" is used at one function name though).

lenormf commented 4 years ago

I didn't notice the existing code because there was no regex for synopses.

Without my patch, synopses are inserted into the output.