Skip to content

ParseToJson and ParseToHtml#18

Open
archisgore wants to merge 7 commits into
mattdaly:masterfrom
archisgore:master
Open

ParseToJson and ParseToHtml#18
archisgore wants to merge 7 commits into
mattdaly:masterfrom
archisgore:master

Conversation

@archisgore
Copy link
Copy Markdown

The parser as it existed, gave you an HTML output from the fountain.io format. This is good, but it's not technically a parser so much as a transcoder. Consuming the output programmatically was not possible (not easily at least.)

This change keeps the original parse function renamed to parseToHtml.

It adds a new function called parseToJson which parses the file into a javascript object graph. This allows programmatic access to elements of the script such as dialog, characters, scenes, transitions, etc.

I believe this will be very handy for future users.

@jtejido
Copy link
Copy Markdown

jtejido commented Jun 7, 2017

The dialogue is duplicating and, as I tried on BRICK & STEEL screenplay, there appears to be a dialogue from the previous heading (it appears to be always the last dialogue from previous heading) creeping/printing onto the next heading..

Copy link
Copy Markdown

@maurofitermann maurofitermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the latest request for the script you need still uses var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants