Skip to content
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

Optimize away the child <span> element for spoilers (if reasonable) #367

Closed
spl1nes opened this issue Feb 2, 2024 · 1 comment
Closed

Comments

@spl1nes
Copy link
Member

spl1nes commented Feb 2, 2024

File: phpOMS/Utils/Parser/Markdown/Markdown.php

return [
            'char'         => $marker,
            'openerLength' => $openerLength,
            'element'      => [
                'name'    => 'details',
                'element' => [
                    'text'     => '',
                    'elements' => [
                        [
                            'name' => 'summary',
                            'text' => $summary,
                        ],
                        [
                            'name' => 'span', // @todo check if without span possible
                            'text' => '',
                        ],
                    ],
                ],
            ],
        ];
@spl1nes spl1nes changed the title Optimize away the child <span> element for spoilers Optimize away the child <span> element for spoilers (if reasonable) Feb 2, 2024
@spl1nes
Copy link
Member Author

spl1nes commented May 3, 2024

I don't think this is possible!

@spl1nes spl1nes closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant