This gem translates html tag into Latex code. You can also create your own translation hash.
Add this line to your application's Gemfile:
gem 'html2latex'
And then execute:
$ bundle
Or install it yourself as:
$ gem install html2latex
Example:
Html2latex.translate("<b>Bolt text here</b>")
Example:
newhash = {"<tag>" => "\latexcode{"}
Html2latex.add newhash
Bug reports and pull requests are welcome on GitHub at https://github.com/pherde/html2latex. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Html2latex project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.