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

Support custom transforms for utterance #45

Open
dwhieb opened this issue Oct 27, 2023 · 0 comments
Open

Support custom transforms for utterance #45

dwhieb opened this issue Oct 27, 2023 · 0 comments

Comments

@dwhieb
Copy link
Member

dwhieb commented Oct 27, 2023

The user should be able to provide a custom transform for the utterance, which accepts all of the line data as one argument, and the utterance object as a second argument, and must return an HTML string.

This allows the user to add custom lines or other markup around existing lines, or to reorder lines. One specific use case is to add notes lines at the end of the interlinear example (which by default aren't processed).

This runs after individual line transforms are run.

@dwhieb dwhieb changed the title custom transform for utterance Support custom transforms for utterance Jan 6, 2024
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