vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

A question about null in mkd_renderer #50

Closed txdv closed 12 years ago

txdv commented 12 years ago

If I supply null in the mkd_renderer for a function, will it just mirror the input or omit it completely?

vmg commented 12 years ago

Hey, as the documentation in the header says, for block-level callbacks, a NULL pointer will prevent the block from being rendered, and for span-level callbacks, a NULL pointer will mirror the output verbatim.

txdv commented 12 years ago

Hm that makes it a little bit inconvenient - for I HAVE to set all the fields in C# to not null in order to make the api have a subclassing based style.

Basically I have to reimplement the mirroring.