文件名中包含下划线时附件标记生成错误

上传文件时发现一个小 bug:

如果文件名以和下划线开头和结尾(本例中为 _test_file_.txt),标记生成代码未对下划线进行转义,导致出现以下“文件名”:
test_file.txt|attachment (23 Bytes)

[_test_file_.txt|attachment](upload://eSJGButIpkpu4IEifmmispiFRJu.txt) (23 Bytes)

如果我用反斜杠转义第一个下划线,则能正确解析:

_test_file_.txt (23 Bytes)

[\_test_file_.txt|attachment](upload://eSJGButIpkpu4IEifmmispiFRJu.txt) (23 Bytes)