sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 218 forks source link

Add ability to have more than one class in LinkRenderer.Rendering using multiple withAttribute() calls #204

Open vsch opened 8 years ago

vsch commented 8 years ago

This is a simple fix to concatenate attribute values with a space separator if the attribute is already defined in the Rendering.

That way withAttributes() can be called from multiple points in the code without worrying if the attribute is already defined or will be defined in some future release.