-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
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
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.
🚀
@@ -1,4 +1,11 @@ | |||
# tinkr dev | |||
# tinkr 0.0.0.9002 |
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.
You're so good at versioning that you might enjoy using fledge? https://cynkra.github.io/fledge/
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.
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()) |
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.
as it's one line maybe rather just use # nocov
at the end of it?
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.
I didn't know we could do that 😲
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.
I'm not sure I'm proud to know a further covr avoidance hack 😉
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.
😅
Co-authored-by: Maëlle Salmon <maelle.salmon@yahoo.se>
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