Rails Daily

Rails Daily: Action Text Markdown Export and Developer Experience Updates

Rails merged major Action Text functionality adding markdown export capabilities, plus developer experience improvements for containerized environments and Ruby 4.0 compatibility fixes.

Duration: PT1M50S

https://podlog.io/listen/rails-daily-a67c65cf/episode/rails-daily-action-text-markdown-export-and-developer-experience-updates-9737cce6

Transcript

Good morning, this is Rails Daily for February 25th, 2026.

Mike Dalessio merged a significant addition to Action Text, introducing `to_markdown` functionality that mirrors the existing `to_plain_text` method. This feature allows rich text content to be exported as Markdown, preserving formatting like headers, bold, and italic text while remaining more concise than HTML for LLM consumption. The implementation includes a new `MarkdownConversion` module that handles inline formatting, block elements, lists, links, and tables. Performance benchmarks show the new markdown conversion running 35% faster than plain text conversion.

Dalessio followed up with edge case fixes for the markdown functionality, addressing code block whitespace preservation, link escaping, and URI safety by delegating protocol checking to Rails HTML Sanitizer.

Hartley McGuire moved the `protected_environments` configuration from a class attribute on ActiveRecord::Base to the top-level ActiveRecord module, simplifying its global usage in database tasks.

For developers using containerized environments, a contribution from elalemanyo adds `RAILS_HOST_APP_PATH` support, fixing editor links in error pages when Rails runs inside Docker or devcontainer setups. Jean Boussier cleaned up the related tests.

Hammad addressed Ruby 4.0 compatibility by fixing delegator warnings for the `inspect` method on DelegateClass subclasses in ActiveModel and ActiveRecord.

The Sidekiq integration test adapter was updated to address deprecation warnings in Sidekiq 8.1.1.

What's next: Action Text now offers three export formats - HTML, plain text, and markdown. The containerized development experience continues improving with better IDE integration.

That's your Rails update for today. I'm your host, and we'll see you tomorrow.