I figured out the issue. It was in fact a problem with how I was using opts.features as I suspected. After looking at the core markdown code, I realized that the feature name is based on the file name. I had my file named markdown-ruby.js.es6, so the feature name was implicitly markdown-ruby even though I was assigning the feature ruby in my code. Renaming the file to ruby.js.es6 resolved the issue.
It’s still a little unclear to me if the opts.features I’m modifying represents all features or just the markdown subset of features. If it’s all features, ruby feels a little too short/vague and I might rename the file and feature to markdown-ruby just to be safe.