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 217 forks source link

No way to register a ToHtmlSerializerPlugin with PegDownProcessor #124

Open hcayless opened 10 years ago

hcayless commented 10 years ago

In attempting to implement a plugin, it has become clear that there isn't any way to tell the ToHtmlSerializer that plugins are available via the PegDownProcessor. Only parser plugins are registered via PegDownPlugins and there is no way to pass in serializer plugins. This may be by design, but at least the documentation should make clear that you have to implement your own processor if you want to use a serializer plugin.

big-guy commented 10 years ago

@hcayless I was running into the same thing this weekend. Does #126 seem to fix this?

hcayless commented 10 years ago

Looks like it should. Won’t have time to test it for a few days.

Thanks!

Hugh

On Mar 18, 2014, at 24:38 , big-guy notifications@github.com wrote:

@hcayless I was running into the same thing this weekend. Does #126 seem to fix this?

— Reply to this email directly or view it on GitHub.