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

add tasklist template for commonmark 1.8 #67

Merged
merged 3 commits into from
Mar 24, 2022
Merged

add tasklist template for commonmark 1.8 #67

merged 3 commits into from
Mar 24, 2022

Conversation

zkamvar
Copy link
Member

@zkamvar zkamvar commented Mar 23, 2022

The commonmark spec updated to include tasklists
https://github.github.com/gfm/#task-list-items-extension-

This was implemented in commonmark 1.8 with
r-lib/commonmark#18. This PR should be
backwards compatible with older versions of commonmark

This will fix #66

The commonmark spec updated to include tasklists
https://github.github.com/gfm/#task-list-items-extension-

This was implemented in commonmark 1.8 with
r-lib/commonmark#18. This commit should be
backwards compatible with older versions of commonmark

This will fix #66
@zkamvar zkamvar requested a review from maelle March 23, 2022 17:59
Copy link
Member

@maelle maelle left a comment

Choose a reason for hiding this comment

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

🚀

NEWS.md Outdated Show resolved Hide resolved
@@ -1,4 +1,11 @@
# tinkr dev
# tinkr 0.0.0.9002
Copy link
Member

Choose a reason for hiding this comment

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

You're so good at versioning that you might enjoy using fledge? https://cynkra.github.io/fledge/

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooh! Thank you for this! I completely forgot about it!

R/to_xml.R Outdated
body <- protect_tickbox(body, md_ns())
if (utils::packageVersion("commonmark") < "1.8.0") {
#nocov start
body <- protect_tickbox(body, md_ns())
Copy link
Member

Choose a reason for hiding this comment

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

as it's one line maybe rather just use # nocov at the end of it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't know we could do that 😲

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I'm proud to know a further covr avoidance hack 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

😅

zkamvar and others added 2 commits March 24, 2022 06:59
Co-authored-by: Maëlle Salmon <maelle.salmon@yahoo.se>
@zkamvar zkamvar merged commit a64952c into main Mar 24, 2022
@zkamvar zkamvar deleted the update-tasklist branch March 24, 2022 14:46
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.

commonmark 1.8 introduces tasklists, which breaks our handling of taskslists
2 participants