diff --git a/libraries/markdownj/src/main/java/com/todou/markdownj/MarkdownProcessor.java b/libraries/markdownj/src/main/java/com/todou/markdownj/MarkdownProcessor.java index 7efa5f1..6f61b80 100644 --- a/libraries/markdownj/src/main/java/com/todou/markdownj/MarkdownProcessor.java +++ b/libraries/markdownj/src/main/java/com/todou/markdownj/MarkdownProcessor.java @@ -420,7 +420,6 @@ public String genericCodeBlock(String text) { } private TextEditor doTableBlocks(TextEditor markup) { - doAnchors(markup); Pattern p = Pattern.compile( "(\\|(?:[^\\n]*\\|)+\\n" + "\\|(?:[ ]*-+[ ]*\\|)+\\n" + @@ -428,7 +427,7 @@ private TextEditor doTableBlocks(TextEditor markup) { return markup.replaceAll(p, new Replacement() { @Override public String replacement(Matcher m) { - String tableMd = m.group(1); + String tableMd = getAnchorsString(m.group(1)); String[] lines = tableMd.split("\\n"); StringBuilder sb = new StringBuilder(); sb.append("