diff --git a/.gitignore b/.gitignore index e0fbf9f..23492a2 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ pre_dot_hn-*.tar # Built Site /priv/static/ + +# TreeSitter Parsers +/tree-sitter/_parsers/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af0559a..8c94a15 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ pages: - mix esbuild.install --if-missing - mix tailwind.install --if-missing - mix tree_sitter.install --if-missing + - (cd tree-sitter/_parsers/;git clone https://github.com/elixir-lang/tree-sitter-elixir; git clone https://github.com/camdencheek/tree-sitter-dockerfile) - mix assets.build - mix pre_dot_hn.build - cp -r priv/static/ public diff --git a/lib/pre_dot_hn/markdown.ex b/lib/pre_dot_hn/markdown.ex index 9ecbe14..295ccd4 100644 --- a/lib/pre_dot_hn/markdown.ex +++ b/lib/pre_dot_hn/markdown.ex @@ -71,7 +71,7 @@ defmodule PreDotHn.Markdown do {"code", [], [table], %{verbatim: true}} end - def floki2earmark(list) when is_list(list) do + def floki2earmark(list) when is_list(list) do Enum.map(list, &floki2earmark/1) end diff --git a/tree-sitter/_parsers/.keep b/tree-sitter/_parsers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/tree-sitter/config.json b/tree-sitter/config.json index fb8e54f..4f325c4 100644 --- a/tree-sitter/config.json +++ b/tree-sitter/config.json @@ -4,7 +4,8 @@ "/home/prehnra/src", "/home/prehnra/source", "/home/prehnra/projects", - "/home/prehnra/treesitter" + "/home/prehnra/treesitter", + "/builds/prehnRA/pre.hn/tree-sitter/_parsers/" ], "theme": { "function": 26,