-
Notifications
You must be signed in to change notification settings - Fork 5
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
Attempt to consolidate admon content model #60 #67
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a bit too restrictive. My main tenet was that admons should not have formalpara as their first element (after title). Maybe go for something more like allowing:
title?,
remark*,
para,
(para | formalpara | all_manner_of_lists | verbatim_stuff | remark | ... )*
Oh, I see! I thought, you wanted to get rid of |
@sknorr better? 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would agree that we should keep formalpara within admonitions but not as first element.
89d82a4
to
53c44d4
Compare
Thanks! Looks much better. I'd suggest to allow informal elements as well, though: (via TDG 5.1)
|
Good. 👍 I was unsure about the informal elements, but I can add them too. However, do we really need a table inside admonitions?
We don't support HTML tables, only CALS.
We don't support that too. 😉 |
I vote against informaltables in admonitions, they tend to blow up the admonitions. :;
|
Please just allow all informal elements that we support. I don't really see tables as "blowing up" admons -- whatever that means in particular. I do admit that admon/informaltable is probably a very niche use case but it might be useful, e.g for a <note/> that contains a small comparative feature table etc. I don't think there is much potential for "abuse" by writers, especially given the complexities of table markup. |
My point on this:
Maybe not "abuse", but we also should guide our writers what we think is appropriate in our documentation and what is not. What about the following idea: we try to work without informaltables in admons first. If we find out, that it is too restrictive, I will happily add them. Deal? 😉 |
a5b41f8
to
1928040
Compare
* Force admons to have at least one para as first child * Allow informal{example,figure,table,equation} in admon content model (as suggested by Stefan) * Disallow formalpara as a first child in admonitions (to avoid layout issues) * Add test cases
1928040
to
127f256
Compare
This PR fixes #60 and contains the following changes:
formalpara
=> allow
remark
,para
, lists,screen
, andxi:include
.