You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin looks really useful, espacially for utility and component classes. I'm wondering if there is a way to add support for mulitple paragraphs styling? So far, it only returns the first paragraph.
Ideally something like this $page->title()->ktw('p', ['class' => 'custom']) would returns:
@th-km Hi, sorry for the lack of reply, I was on vacation.
Thank for your suggestion, that's I totally agree. I will give a look on how to do it properly. I have some questions to clear out, like sometime we only have to change the first one, or sometime all (that's what you want). So we maybe need another one parameter…
Since I'm not a PHP developer, I can't tell you that I will be done asap.
To anyone who's read this, feel free to help me on this.
By the way, I'm aware of this PR getkirby/kirby#1442 and I will probably have some breaking changes to do in the future depending on what and how they'll do it exactly.
Yeah I know, It's has always been difficult for me to style markdown and avoid things like this in my css:
p+p {
margin-top:1.5rem;
}
I use toStructure()a lot without any decent alternative.
It'd be great to have acces to mutilple vars instead of one, basically all tags provided by markdown, with a default to null if nothing is specified. This will allow to style every tags the way you want (BEM, utility and so on).
The plugin looks really useful, espacially for utility and component classes. I'm wondering if there is a way to add support for mulitple paragraphs styling? So far, it only returns the first paragraph.
Ideally something like this
$page->title()->ktw('p', ['class' => 'custom'])
would returns:The text was updated successfully, but these errors were encountered: