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

v3 Allow for custom Quote Notes #7939

Closed
DavidMarquezF opened this issue Mar 17, 2022 · 2 comments · Fixed by #8735
Closed

v3 Allow for custom Quote Notes #7939

DavidMarquezF opened this issue Mar 17, 2022 · 2 comments · Fixed by #8735
Labels
extensibility Extend the platform to support new languages, new outputs and custom behaviors markdown Authoring and presenting content using markdown
Milestone

Comments

@DavidMarquezF
Copy link

Operating System: Windows
DocFX Version Used: v3

QuoteSectionNote extension is hardcoded:

private readonly List<string> _noteTypes = new() { "[!NOTE]", "[!TIP]", "[!WARNING]", "[!IMPORTANT]", "[!CAUTION]" };

It would be nice if the templates could provide these through the context (token.json I guess?). Then all the templates would have full control over these properties.

@KalleOlaviNiemitalo
Copy link

If implemented, this would allow a custom template to recognize [!TODO] #6268.

@yufeih yufeih added the v3 label Mar 18, 2022
@DavidMarquezF
Copy link
Author

DavidMarquezF commented Apr 5, 2022

Another option would also be to be able to maintain the current tags but allow users to set the titles themselves. I believe this is how docusaurus does it

Maybe something like:

> [!TIP](This is the title)
> Content

@yufeih yufeih added markdown Authoring and presenting content using markdown extensibility Extend the platform to support new languages, new outputs and custom behaviors and removed v3 labels Dec 15, 2022
@yufeih yufeih added this to the Backlog milestone Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensibility Extend the platform to support new languages, new outputs and custom behaviors markdown Authoring and presenting content using markdown
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants