A Ruby gem that transforms plain text into HTML using a pipeline of composable filters.
AutoHtml is a Ruby gem that transforms plain text into HTML using a collection of composable filters. It solves the problem of automating common text conversions—like turning URLs into links, parsing Markdown, or converting emoji codes—by providing a modular pipeline system. Developers can chain filters to create custom formatting rules without writing repetitive transformation logic.
Ruby and Rails developers who need to automate HTML generation from user-generated content, such as comments, posts, or documentation. It's particularly useful for applications where text requires multiple formatting steps (e.g., blogs, forums, or CMS platforms).
AutoHtml offers a clean, extensible pipeline architecture that simplifies complex text transformations. Unlike monolithic libraries, its filter-based design allows precise control over formatting order and reuse across projects, with built-in performance optimizations like database caching for ActiveRecord.
Collection of filters that transform plain text into HTML code.
Implements the Pipes and Filters pattern, allowing developers to chain and nest filters like Link and Markdown for customizable transformations, as shown in the README examples.
Includes ready-to-use filters for links, images, Markdown, and emojis, reducing the need to write boilerplate code for standard text conversions.
Simplifies performance optimization by enabling formatted HTML to be stored in database columns, avoiding regeneration on each access, as demonstrated in the ActiveRecord example.
Only provides a handful of bundled filters; advanced features like video embedding or custom sanitization require implementing additional filters from scratch.
Requires careful ordering of filters to avoid issues, such as placing Image before Link to prevent URL conflicts, which can lead to subtle bugs if mismanaged.
Tied to Ruby ecosystems, making it unsuitable for projects using other languages or requiring cross-platform text processing solutions.
Your Rails variables in your JS
render_async lets you include pages asynchronously with AJAX
Rails view helper to manage "active" state of a link
Bootstrap Helpers for Ruby
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.