Skip to content

Commit a1a1c6f

Browse files
authoredOct 27, 2021
Merge pull request #420 from shuzijun/gradle
fix format
·
v8.14v8.0-Beta.2
2 parents db3b681 + fe58388 commit a1a1c6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/main/java/com/shuzijun/leetcode/plugin/utils/doc/CleanNodeFormatter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ private void render(@NotNull InlineLaTexNode texNode, @NotNull NodeFormatterCont
6666
}
6767

6868
private void render(@NotNull AttributesNode attributesNode, @NotNull NodeFormatterContext nodeFormatterContext, @NotNull MarkdownWriter lineInfos) {
69+
if(attributesNode.getText().startsWith(":align") ||attributesNode.getText().startsWith(":width") ){
70+
return;
71+
} else {
72+
lineInfos.append(attributesNode.getChars());
73+
nodeFormatterContext.delegateRender();
74+
}
6975
}
7076

7177
private void render(FencedCodeBlock node, NodeFormatterContext context, MarkdownWriter markdown) {

0 commit comments

Comments
 (0)
Please sign in to comment.