Normally for a project like this I’d take a look at Discourse’s code and re-implement it to my taste, but this time it struck me as an great library to extract (given that it’s self-contained and uses a computer-sciency algorithm with a fancy name and whatnot)
Note, strictly the gem should be GPL, but we are OK to waive that and allow this particular extraction to be MIT (similar to how onebox is MIT). Please note you need to clear this kind of stuff with us on a case-by-case basis.
Ah yes, that was my intention in creating this post was to make sure you were aware it existed and could make adjustments to it as you saw fit; I was following onebox’s lead on licensing as the only other gem I knew of that was extracted from core.
I’ll be sure to check in specifically if this situation comes up again