-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
summary and details tag are no longer supported #1915
Comments
@VadimKovalenkoSNF I'm not quite sure how substitution happens in mwOffliner, but I've found that the following two steps easily restore the previous behaviour:
I can provide a one-line regular expression JS replacement that does this if you operate on the html as a string, though I suspect you might prefer to use DOM methods to select and replace/wrap the elements. I have a working solution in prototype code for the Kiwix JS PWA, but it would be much better to fix in the ZIM. Happy to give details if it's helpful. |
Thanks, @Jaifroid . I'll probably use DOM methods for this indeed, but your idea seems valid. |
Postponing, not even sure this is a problem. |
Before
mobile-section
deprecation mwoffliner used related JSON response to generate collapsible sections using Swig templates (see res/templates/section_wrapper.html file). Sincepage/html
andpage/mobile-html
are responsible for outputting HTML content, no collapse sections are available. The symptom of this issue is mentioned in #1860 and #1866There are multiple ways to bring these sections to work:
page/html
output and related transformations from mobileapps in mwoffliner.page/mobile-html
The text was updated successfully, but these errors were encountered: