Skip to content

[FEATURE] Facilitate Directive Creation #557

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

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Conversation

linawolf
Copy link
Contributor

A directive can now be created just by supplying a template with the name of that directive in the folder body/directive this behaviour is now similar to how we already did it with Text rules.

As an example I transfered the rubric directive to a template-only directive. Such a concept does not exist in other Markup formats anyway. It saves us both the Node and the directive.

Additionally this enables us to output unknown directives and then feature a warning (like sphinx does) instead of swallowing it and throwing an error.

A directive can now be created just by supplying a template with the name of that directive in the folder body/directive this behaviour is now similar to how we already did it with Text rules.

As an example I transfered the rubric directive to a template-only directive. Such a concept does not exist in other Markup formats anyway. It saves us both the Node and the directive.

Additionally this enables us to output unknown directives and then feature a warning (like sphinx does) instead of swallowing it and throwing an error.
@jaapio jaapio merged commit 3654df8 into main Aug 26, 2023
@jaapio jaapio deleted the feature/dirctive-fallback branch August 26, 2023 18:04
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

Successfully merging this pull request may close these issues.

2 participants