From f6a7b48aea8726d0d2f36b5145a38189d4bf9773 Mon Sep 17 00:00:00 2001 From: Adrian Salamon Date: Tue, 11 Jul 2023 22:50:25 +0200 Subject: [PATCH] fix: small comment --- lib/haj/markdown.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/haj/markdown.ex b/lib/haj/markdown.ex index 85ad4a4..7cb6e8d 100644 --- a/lib/haj/markdown.ex +++ b/lib/haj/markdown.ex @@ -40,6 +40,7 @@ defmodule Haj.Markdown do do: {{tag, attrs, nil, m}, acc} defp slugify(data) when is_list(data) do + # From https://github.com/yzhang-gh/vscode-markdown/blob/99f85cf9475d00ed6898ce74bad05128f1efee8f/src/util/slugify.ts#L15 Enum.join(data, "") |> String.replace(~r/[^\p{L}\p{M}\p{Nd}\p{Nl}\p{Pc}\- ]/u, "") |> String.downcase()