-
Notifications
You must be signed in to change notification settings - Fork 2
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
Application of :error
and other configurations globally
#56
Comments
I am extremely wary of allowing any metaoption on an outer block to affect other blocks I also worry that we're multiplying entities without necessity, since we already have a mechanism The problem, as you point out, is that this mechanism currently doesn't allow generic configuration
Allowing regexes as
Or configure all four "literal" formatting codes to allow nested Basis codes:
But I agree that supporting regexes as However, I don't see why we couldn't at least support a single "universal target" for
|
@thoughtstream A single '*' would be consistent with other RakuDoc elements.
|
May be the pseudo block 'any'? |
rakudo/rakudo@3f0f974e4b allows |
@lizmat you are a genius ! |
Indeed! Outstanding work (as usual :-) |
closing as resolved |
@thoughtstream In #52 we discussed adding the option
:error
/:!error
to custom blocks.More generally, the specification indicate that how and when errors are generated is left to the renderer.
We have not specified how to affect this within the document.
One of the ideas I included in
Raku::Pod::Render
is that when a meta option is included in the=begin rakudoc
block, then it is treated document meta data and provided to all blocks as a default.A
=config
statement is directed to a named Block. I do not want to suggest that the block name can be replaced by a regex. I think that would be too powerful at present.Suppose an author wants to turn off all error statements, then perhaps we could allow
These would be the default for all blocks, and over-ridden if given by a config or the block option.
The text was updated successfully, but these errors were encountered: