From b1290fba6993fa2c1d22cb83a6575e27e0168835 Mon Sep 17 00:00:00 2001 From: inhji Date: Thu, 13 Jul 2023 09:52:12 +0200 Subject: [PATCH] fix subsections in outline --- lib/chiya_web/controllers/page_html.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chiya_web/controllers/page_html.ex b/lib/chiya_web/controllers/page_html.ex index a2e64ec..5ea69a8 100644 --- a/lib/chiya_web/controllers/page_html.ex +++ b/lib/chiya_web/controllers/page_html.ex @@ -11,6 +11,7 @@ defmodule ChiyaWeb.PageHTML do note.content |> ChiyaWeb.Outline.get() |> Enum.map(&do_render_outline/1) + |> Enum.map(&safe_to_string/1) end def do_render_outline(%{text: text, children: children, level: _level}) do @@ -21,6 +22,6 @@ defmodule ChiyaWeb.PageHTML do content_tag(:a, text, href: "##{slug}")), Enum.map(children, &do_render_outline/1) ] - ) |> safe_to_string() + ) end end -- 2.39.5