Skip to content

Commit

Permalink
fix: small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansalamon committed Jul 11, 2023
1 parent 843b16e commit f6a7b48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/haj/markdown.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f6a7b48

Please sign in to comment.