dlang-community / libddoc

D implementation of the DDoc macro system
Boost Software License 1.0
7 stars 9 forks source link

Add option to leave unknown macros in instead of deleting them #32

Closed WebFreak001 closed 5 years ago

WebFreak001 commented 7 years ago

I use libddoc to convert the documentation of functions to markdown to display in a text editor but when there are unknown macros expand simply deletes them out of the string instead of keeping them in (which would be more desirable for when you convert one small chunk of documentation and not having all the macros defined in the file). Adding an option to keep them in would be nice.

ddoc -> md converter: https://github.com/Pure-D/serve-d/blob/master/source/served/ddoc.d#L11 ref https://github.com/Pure-D/serve-d/issues/8