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

Desktop: Resolves #6254: Open details tag on Pdf Export #6265

Closed
wants to merge 2 commits into from
Closed

Desktop: Resolves #6254: Open details tag on Pdf Export #6265

wants to merge 2 commits into from

Conversation

krishna8421
Copy link
Contributor

Fixes #6254
Add open attribute in details tags while exporting in pdf form.

@@ -0,0 +1,17 @@
const preprocessor = {
// Open the details tag
openDetailsTags: (htmlData: string): string => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I have the details tag inside a markdown code block? Like this
```
<details>
...
</details>
```

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't add if it is under backticks

Screenshot 2022-03-13 at 4 08 40 AM

Screenshot 2022-03-13 at 4 08 51 AM

@laurent22
Copy link
Owner

I feel there are too many issues in this pull request and it would take too much work to get it done. For example it should parse the HTML properly, and not use a regex (how do you handle tags over multiple lines, or with comments in between, or mixed case, etc). For that reason I'd prefer to close this pull request.

By the way in the pull request guidelines you'll see we have this rule of one pull request per participant. You already have 5 so you don't need to do more.

@laurent22 laurent22 closed this Mar 13, 2022
@krishna8421
Copy link
Contributor Author

Yes, I should have use an HTML parser instead of the regex

By the way in the pull request guidelines you'll see we have this rule of one pull request per participant. You already have 5 so you don't need to do more.

Sorry, I didn't get that, I have no PR open right now, so can I work on other issues.

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

Successfully merging this pull request may close these issues.

<details> elements remain closed when exporting to PDF
3 participants