From 48dd48fec30c343835432022b7d5954504dd8934 Mon Sep 17 00:00:00 2001 From: Martin Kunz Date: Tue, 26 Aug 2025 16:53:25 +0200 Subject: [PATCH 1/2] feat: Add section sign as a symbol to convert to markdown --- src/tex_to_markdown.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tex_to_markdown.jl b/src/tex_to_markdown.jl index 0ab6817a..5cebbb71 100644 --- a/src/tex_to_markdown.jl +++ b/src/tex_to_markdown.jl @@ -111,6 +111,7 @@ const _COMMANDS_TO_MD = Dict{String,Function}( "\\AA" => () -> "\u00C5", # \AA Å latin capital letter A with ring above "\\oe" => () -> "\u0153", # \oe œ latin small ligature oe "\\AE" => () -> "\u00C6", # \AE Æ latin capital letter AE + "\\S" => () -> "\u00A7", # \S § section sign ) From d308f78ac5b85aaa60d294d04e72b6fc4437f377 Mon Sep 17 00:00:00 2001 From: Martin Kunz Date: Tue, 26 Aug 2025 21:27:28 +0200 Subject: [PATCH 2/2] test: Add test for the `\S` LaTeX command --- test/test_tex_to_markdown.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_tex_to_markdown.jl b/test/test_tex_to_markdown.jl index 60bb5f26..80a7bf02 100644 --- a/test/test_tex_to_markdown.jl +++ b/test/test_tex_to_markdown.jl @@ -79,6 +79,9 @@ end s = "\\d ox" @test _collect_command(s, 1) == (4, "\\d o", "ọ") + s = "\\S" + @test _collect_command(s, 1) == (2, "\\S", "§") + @test_throws BoundsError _collect_command("\\url", 1) #! format: off