-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add Ruby-based extension in Asciidoctor.js Live Preview #297
Comments
Unfortunately Ruby-based extension cannot be used as-is in a JavaScript environment. Out of curiosity which Ruby-based extension do you want to use ? |
Thanks a lot for your answer. It would be for BlockMacroProcessor extension |
You're welcome 😄
Which one specifically ? I suppose that the extension already exists and is written in Ruby right ? |
No they are specific ones I created through extending this Ruby class. I will try to rewrite them in JavaScript |
Hello But when I add the rendered javascript to the option of "Asciidoctor.js live preview" the Live preview isn't updated with macro treatment due to error : ReferenceError : Opal not found. Do we have to add a require or something ? |
I think Opal is not found because the script is not executed in the same context, see: #220 I didn't have time to dig further on this issue... apparently there's a polyfill for Chrome... |
Thanks for your quick answer. ;-) |
In Asciidoctor.js Live Preview there is no way to add custom ruby-based extension.
Along with Custom attributes it would be nice to add paths to rb extension files.
The text was updated successfully, but these errors were encountered: