Closed halloleo closed 9 years ago
No, this was a deliberate design decision. If no style field is provided, then panzer does not attempt to apply a style definition.
You can easily define your own 'default' that you can assign explicitly. A natural arrangement is to have the default be the parent of any other style. I use a style called 'Base' as my default style; all my other styles derive from it.
Mmmmhhhh, can my own ‘default style' get used by documents which have no style definition. That would be so great!
On 10 Sep 2015, at 18:05, Mark Sprevak notifications@github.com wrote:
No, this was a deliberate design decision. If no style field is provided, then panzer does not attempt to apply a style definition.
You can easily define your own 'default' that you can assign explicitly. A natural arrangement is to have the default be the parent of any other style. I use a style called 'Base' as my default style; all my other styles derive from it.
— Reply to this email directly or view it on GitHub https://github.com/msprev/panzer/issues/19#issuecomment-139159293.
A workaround is that you can invoke panzer with panzer source.md --metadata=style:Base
?
The right default, if the style field is missing, is for there to be no style!
Unfortunately that is not at all a work around: Because when you set --metadata=style:default
on the command line the document cannot override this anymore. :-( A default style should be overridable by any given style, don’t you think so?
On 10 Sep 2015, at 20:54, Mark Sprevak notifications@github.com wrote:
A workaround is that you can invoke panzer with panzer source.md --metadata=style:Base?
The right default, if the style field is missing, is for there to be no style!
— Reply to this email directly or view it on GitHub https://github.com/msprev/panzer/issues/19#issuecomment-139203108.
You got me there. I still think that no style should be applied unless one is specified...
Is there a name for a default style which (if it is defined in the
styles.yaml
file) is used when the document contains no style definition?