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

I found something wired like duplication markdown result when I try to reuse PegDownProcessor #209

Open aaronamm opened 8 years ago

aaronamm commented 8 years ago

Hello everyone,

I really like Pegdown project, I use it as the main mark down engine for codesanook.com.

However, I found something that not expected. When I try to reuse PegDownProcessor by creating as Spring bean and it will produce duplicate HTML data. Therefore, I need to create new instance every time I need it, this make lacking of Dependency injection technique that I need for special markdown syntax.

Please give me some suggestions for this.

Thank you so much.