From c05d66067be014be63a11b1966d032ad372064a2 Mon Sep 17 00:00:00 2001 From: inhji Date: Tue, 11 Jul 2023 15:04:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/controllers/page=5Fhtm?= =?UTF-8?q?l.ex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/controllers/page_html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chiya_web/controllers/page_html.ex b/lib/chiya_web/controllers/page_html.ex index 1a11113..348679c 100644 --- a/lib/chiya_web/controllers/page_html.ex +++ b/lib/chiya_web/controllers/page_html.ex @@ -15,7 +15,7 @@ defmodule ChiyaWeb.PageHTML do def do_render_outline(%{text: text, children: children, level: _level}) do content_tag(:ul, [class: "m-0"], do: [ - content_tag(:li, do: content_tag(:a, text, href: "##{Slugger.slugify(text)}")), + content_tag(:li, do: content_tag(:a, text, href: "##{Slugger.slugify_downcase(text)}")), Enum.map(children, &do_render_outline/1) ] ) -- 2.39.5