-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Hello! I am working on getting the Discourse app to run in JRuby, and need to replace its dependency on rinku.
There are two ways we typically do this:
- Port the extension. This shouldn't be difficult, but it seems like you may have already done this work?
- Wrap a JVM library.
The latter would be preferable, since all we'd need to write is a bit of Ruby to wrap your library.
However there's a few things that would make this integrate better with JRuby:
- CharSequence is great, but the API produces String eventually. This means JRuby's byte[]-based Ruby strings need an extra conversion step, which will obviously slow down the rendering of a large document.
- Compatibility with rinku. I'm not sure how to map the features of rinku to autolink-java and will need some tips here.
Here's a quick and dirty rinku-like wrapper based on your example code from README. It can serve as a place to start discussing: https://github.com/headius/jruby-autolink
Discourse on JRuby work: https://meta.discourse.org/t/getting-discourse-running-on-jruby/81273/14
Issue to make a JRuby port of rinku: vmg/rinku#75
Metadata
Metadata
Assignees
Labels
No labels