Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] libddoc should wraps standard sections with DDOC_SECTIONNAME #26

Open
Geod24 opened this issue Sep 29, 2015 · 0 comments
Open

[Bug] libddoc should wraps standard sections with DDOC_SECTIONNAME #26

Geod24 opened this issue Sep 29, 2015 · 0 comments

Comments

@Geod24
Copy link
Member

Geod24 commented Sep 29, 2015

Currently libddoc returns the content of sections "ad-hoc", while they should be surrounded with a macro.

We already have the macro definitions so it's just a question of mapping and doing the right thing when the section is standard, basically:

auto content = "$(" ~ SECTIONS_MACROS[toLower(sec.name)] ~ " " ~ sec.content ~ ")";
sec.content = expand(Lexer(highlight(content)), sMacros);

Here.

Depends on #24
Feel free to assign me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant