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
Use enumerable set of known formats #56
base: master
Are you sure you want to change the base?
Conversation
@mb21 noted that we might want to enforce a stricter separation between formats and output formats, which is not the case in this PR. |
@tarleb Yes, we probably should use the rule of thumb that a The exception to this rule is of course |
One thought I've sometimes had is that it would be cool if you could specify disjunctions of formats:
or maybe even complements:
|
I added experimental support for the |
Note on why this is stalling (as far as I remember): it's not always clear what a "Format" really is, and I had trouble finding a good abstraction to capture this. Format seems to be used as
Some of this can be handled by making (1) Sometimes a generic format has be be selected, e.g., 'html5' when All this isn't properly captured in the current PR, it has to be rewritten. |
Maybe the Format type has to be a partial order. That would help with 1 but not 2. |
Part of an effort to resolve jgm/pandoc#547.