-
Notifications
You must be signed in to change notification settings - Fork 15
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
[BUG] Hide Code won't work if there is "---" in the document #21
Comments
When looking for YAML header test lines "---" to be more or equal than 2
Hi @nikosbosse, Thank you for reporting this issue! You are right. When using Now, the code produces the error only if there are less than 2 I have updated the package version (v 1.0.2) in the master branch. Thanks for your help! |
Sweet, thanks a lot! |
If there are three dashes somewhere in the document, then the option to hide the code will not work when syncing the file to Google Drive.
Reprex:
Test.Rmd (adapted the code chunks so they can be rendered as code):
Command that fails:
As far as I can tell the error happens in
trackdown:::extract_header()
. The following lines produce an error when there are three dashes in the text:If this is expected, maybe adding a hint to the error messages might be a good idea.
Thanks a lot!
The text was updated successfully, but these errors were encountered: