-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
as mentioned in #279 i think that it is counter intuitive to wrap an |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
@davidnuescheler Unfortunately I have to disagree about not using sections in a document without thematic breaks. Not wrapping those documents would create a big need for special casing and present an issue for the usability of our html output: With wrapping you could always assume that: Another use case that may be a problem is styling with Is there any actual issue with having a single section in a document? I believe unless some custom css or code uses sections, a section tag would pretty much not change the rendering in any way? |
I think I changed my mind and i am following @koraa @trieloff that it is better to special case the usecases where you need want to drop the wrapping section than to remove the sections by default if there is no also based on the discussion in #279 i think we should change this to |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
*/ | ||
function section() { | ||
return function handler(h, node, _, handlechild) { | ||
const sectionnode = h(node, 'div', { class: 'section' }); |
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.
Maybe sectioNode
?
Also, should we prefix the class to avoid potential collisions with other frameworks or the customer classes?
What about following something like https://suitcss.github.io/ and use hlx-Section
or hlx-section
?
@trieloff Is this still in progress ? |
@trieloff I was more thinking of a merge than a close... ;) Any explanation why you closed it ? We need the change to clean up |
No description provided.