diff --git a/src/tex_to_markdown.jl b/src/tex_to_markdown.jl index 0ab6817..5cebbb7 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 ) diff --git a/test/test_tex_to_markdown.jl b/test/test_tex_to_markdown.jl index 60bb5f2..80a7bf0 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