-
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
formalpara can be used as first element of an admon #60
Comments
Good catch! Currently, admonitions have these content model (resolved):
That would be a good opportunity not only remove
I'm not entirely sure about graphics (db.informal.blocks and db.graphic.blocks) inside admonitions. @sknorr What do you think? Does it look ok? |
@tomschr Not sure if I answered in another way or did not answer at all, but <formalpara/> should be allowed in general. However, as the first element after the title, it makes no sense. What I completely removed v/ upstream are essentially just four things:
What I was unsure about: What are extension.blocks and anchor? The following model would make more sense to me:
|
* Force admons to have at least one para as first child
Thanks @sknorr for the suggestion! 👍 After looking at the pull request #67 again, your suggestions to force a para as a first child makes sense to me. Like it! 👍 I would have only a slight change/wish: Could we change the
I observed a syntax error with your content model, so I'd propose to use this (clarified and collected the removed patterns in one location):
Would you like to review commit 0b7a1ec? |
Uh, sorry for probably missing this initially. Looks good, except: can you please enable the elements db.informalexample | db.informalfigure | db.informaltable | db.informalequation again? |
Na, I also forgot about it. 😉
Although I was originally against the idea of adding these elements into admons (to blow up the content), I'll add them anyway. See it in commit 1928040. |
* Force admons to have at least one para as first child * Add informal{example,figure,table,equation} to admon content model * Add test cases
Also, I am a bit confused, your comment in the commit says: "Removed elements [...] db.screen" but db.verbatim.blocks is included -- or are these not the same? (I think we need screen within admons, so if my observation is correct, please just fix the comment.) |
Yes, The original DocBook contained in Yeah, maybe I should fix/remove/adapt the comment. But I realized, I didn't add that as a test case (i think, that is really important). Thanks for the hint! 👍 |
* 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
Jana and I decided it's overkill and we leave it as is. |
In Geekodoc, you can currently use formalpara as the first element of an admon:
or
Neither construct makes any sense to me. Could we restrict this?
cf. the online-docs failure of the CAP guide, develop@4e27a3e6.
The text was updated successfully, but these errors were encountered: