ash-project / ash

A declarative, extensible framework for building Elixir applications.
https://www.ash-hq.org
MIT License
1.63k stars 218 forks source link

fix: Allow multi-line descriptions to be rendered in Livebook without error #1590

Closed sevenseacat closed 2 weeks ago

sevenseacat commented 2 weeks ago

The mix ash.generate_livebook task was generating bad Markdown for multiline attributes - the new lines were being included as-is which broke the tables.

This introduces a little helper to use breaks instead of newlines, and renders much better.

Before:

Screenshot 2024-11-07 at 5 03 23 PM

After:

Screenshot 2024-11-07 at 5 02 45 PM

Contributor checklist