-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Integrate ACE for editing #247
Comments
If ACE is integrated, it should be optional with a key in the config. It's too large of a dependency to impose on all users. |
I've been poking at trying to add Ace to playpens for a bit. Since this is about adding features to mdBook, it would help knowing what mdBook's overall goals are, and this is my first time looking at this repo. @azerupi does mdBook have interest in implementing editing functionality in the general case? I've seen what appears to be a dormant flag
mdBook currently has highlight.js as a dependency, which is not too light (although it can be reduced to basically nothing if a version for just Rust is grabbed). Ace is heavier, but would make highlight.js unnecessary. Right now, Ace will not work inside playpens because highlight.js seems to grab events on code blocks. |
As an opt-in feature, yes. It is not something I want to force on all users if they don't need it.
Indeed, in the long run I was planning to take a look at syntect as an alternative in order to move syntax highlighting to the book generation phase. But that is not for right now. |
This is the last thing needed to get Rust By Example over to mdbook.
I did some work on this today, and it seems like ACE clashes with something else we're doing; the divs just don't show up.
The text was updated successfully, but these errors were encountered: