Skip to content

Commit

Permalink
markdown/pagemodel: Fixed regular expression to detect metadata
Browse files Browse the repository at this point in the history
We only want to catch metadata keywords.
Other lines were caught with the former regular expression such
as heading containing a colon.
  • Loading branch information
oliviermartin committed Jan 25, 2015
1 parent 3a01679 commit c411f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/winterwell/markdown/pagemodel/MarkdownPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public enum KLineType {

private boolean multiMarkdownSupport = true;
// TODO meta-data, footnotes, tables, link & image attributes
private static Pattern multiMarkdownTag = Pattern.compile("(.+):(.*)");
private static Pattern multiMarkdownTag = Pattern.compile("^([\\w].*):(.*)");
private Map<String, String> multiMarkdownTags = new HashMap<String, String>();

// Regular expression for Github support
Expand Down

0 comments on commit c411f8b

Please sign in to comment.