Skip to content

GfmUser and GfmIssue are not recognized if immediately followed by non-space character #252

@mstrap

Description

@mstrap

For below example, GitHub will recognize "world" as mention and "#1" as issue link, however Flexmark-Java does not:

public static void main(String[] args) {
	final MutableDataHolder options = new MutableDataSet()
	            .set(Parser.EXTENSIONS, Arrays.asList(StrikethroughExtension.create(), GfmUsersExtension.create(), GfmIssuesExtension.create(), AutolinkExtension.create()));
	final Parser parser = Parser.builder(options).build();
	final Document document = parser.parse("Hello, @world, and #1!");
	new NodeVisitor(Collections.emptyList()) {
		@Override
		public void visit(Node node) {
			System.out.println("Node: " + node);
			super.visit(node);
		}
	}.visit(document);
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions