When I made MDPhlex I didn’t realize Rails 8.1 was adding native `to_markdown` convention.

Make organized Markdown (like /llms.txt) generation easy with MDPhlex and Phlex components.

This renders good, well formed markdown (unlike most ERb generated markdown:

```md
# MDPhlex

- [Docs](https://github.com/martinemde/mdphlex/blob/main/README.md)
- [RubyGem](https://rubygems.org/gems/mdphlex)
- [Source](https://github.com/martinemde/mdphlex)
```

Check it out. https://github.com/martinemde/mdphlex

mdphlex/README.md at main · martinemde/mdphlex

A Markdown renderer built on Phlex. Output markdown using components. - martinemde/mdphlex

GitHub