Skip to content

Commit e535606

Browse files
authored
fix: Strip backslash before ^ in generated docstrings (#707)
1 parent 2472785 commit e535606

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codegen/core/src/main/java/software/amazon/smithy/python/codegen/writer/MarkdownConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private static String postProcessPandocOutput(String output) {
170170

171171
// Remove unnecessary backslash escapes that pandoc adds for markdown
172172
// These characters don't need escaping in Python docstrings
173-
output = output.replaceAll("\\\\([\\[\\]'{}()<>`@_*|!~$#])", "$1");
173+
output = output.replaceAll("\\\\([\\[\\]'{}()<>`@_*|!~$#^])", "$1");
174174

175175
// Replace <note> and <important> tags with admonitions for mkdocstrings
176176
output = replaceAdmonitionTags(output, "note", "Note");

0 commit comments

Comments
 (0)