-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: toggle clean_pandoc2_highlight_tags in html_document2 #706
feat: toggle clean_pandoc2_highlight_tags in html_document2 #706
Conversation
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.
Looks good to me. The roxygen doc needs a few more markups. I'll do that by myself after merging. Thanks!
FYI, I renamed |
Please note that with Pandoc 2.7.3, the I do not interpret this behavior as a bug nor a regression. It seems to me that Pandoc 2.7.3 makes the Refs: #733 (comment) and https://github.com/jgm/skylighting/blob/master/changelog.md#08----2019-05-27 |
Thanks. I see that only the difference caused by Yet, div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; } By default, pre {margin: 0 0 10px} If we do not have to care about
|
About the two options described by @atusy
|
I agree with @RLesur |
Hi @atusy, I'd like to get rid of the whole What do you think? |
Nice! The less hackish, the less vulnerable the bookdown package is to the changes in pandoc and skylighting. Let's get rid of it. After getting rid of it, I will close or update PR #738. I don't really need it because I don't use line numbers, too. |
I just removed the function, although I introduced another hack... 52b71f9#diff-0e9d8f9e55fa1ae0adee00b6ed6ba976R51 I haven't tried to understand #738 yet but your description seems to be very clear. Since your issues and PRs are always so clear, just let me know if you want write access to this repo someday, and I'll be happy to grant it to you :) |
Thanks for your commits and suggestions. For #738, I closed it for once because I wanted some rethinking as commented in there. |
Okay, I just gave you write access. If you are very sure about a change, just push to the master branch. I wouldn't mind it. If you want to discuss, you can always send PRs. Thank you! |
Thanks a lot! May I add myself as |
Of course. |
Thanks again. I did it 😃 |
I implemented a toggling option to the
clean_pandoc2_highlight_tags
inhtml_document2
(Issue #705)The toggling is achieved by specifying
highlight_cleaned
in a YAML front matter, which isTRUE
in default for consistency with previous versions.If there is any better name for this option, please tell me.
Here's a reproducible example.