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

Avoid double pass over story content #6

Open
tekul opened this issue May 23, 2017 · 0 comments
Open

Avoid double pass over story content #6

tekul opened this issue May 23, 2017 · 0 comments

Comments

@tekul
Copy link
Member

tekul commented May 23, 2017

The story content is first processed in elm to add emphasis to special words, and then in Javascript to add <span> tags and event handlers around these.

The whole thing could probably be done in Javascript using Regex matches there. Possibly a single regex could be used ORing all the words to use a single pass rather than one per-word.

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

No branches or pull requests

1 participant