Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseToJson and ParseToHtml #18

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

archisgore
Copy link

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

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants