Additional styles for rich text
CI / Test (pull_request) Failing after 40s

Especially for editable content
This commit is contained in:
2026-08-09 11:42:41 -06:00
parent 55df8a9c31
commit b44b689caf
4 changed files with 37 additions and 2 deletions
@@ -9,4 +9,5 @@
@import "components/forms";
@import "components/notifications";
@import "components/pagination";
@import "components/rich_text";
@import "components/tables";
@@ -0,0 +1,30 @@
@layer base {
main {
.rich-text {
ul {
@apply list-disc list-inside;
li {
@apply my-2;
}
}
ol {
@apply list-decimal list-inside;
li {
@apply my-2;
}
}
li > ul,
li > ol {
@apply ps-6 my-1;
}
hr {
@apply my-8;
}
}
}
}
@@ -1,6 +1,8 @@
<% if @editable_content.has_content? %>
<% if @editable_content.rich_text %>
<%= helpers.markdown_to_html @editable_content.content %>
<div class="rich-text">
<%= helpers.markdown_to_html @editable_content.content %>
</div>
<% else %>
<%= @editable_content.content %>
<% end %>
+3 -1
View File
@@ -16,7 +16,9 @@ module ApplicationHelper
end
def markdown_to_html(string)
raw Kramdown::Document.new(string, { input: "GFM" }).to_html
raw Kramdown::Document.new(string, {
input: "GFM"
}).to_html
end
def image_url_for(attachment)