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

Remove YAML front matter from child documents #862

Closed
krlmlr opened this issue Oct 17, 2014 · 2 comments
Closed

Remove YAML front matter from child documents #862

krlmlr opened this issue Oct 17, 2014 · 2 comments
Labels
bug Bugs feature Feature requests
Milestone

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Oct 17, 2014

This is needed when a file is imported as a child document but actually can be also rendered stand-alone. Currently, the front matter is pasted "as is" to the child document, and this means that parts of it are included verbatim in the output. What's the best way to do this?

This question also occurred on StackOverflow, but the only answer so far seems to require a bit of fiddling.

A pull request to yihui/knitr-examples follows.

yihui added a commit to yihui/knitr-examples that referenced this issue Oct 23, 2014
example: YAML front matter in child document

currently knitr has a bug (yihui/knitr#862), which I will fix later
@yihui yihui added feature Feature requests bug Bugs labels Oct 23, 2014
@yihui yihui added this to the v1.8 milestone Oct 23, 2014
yihui added a commit to yihui/knitr-examples that referenced this issue Oct 23, 2014
@yihui yihui closed this as completed in e3c06df Oct 23, 2014
@yihui
Copy link
Owner

yihui commented Oct 23, 2014

The YAML frontmatter is correctly removed for child documents now. Thanks!

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs feature Feature requests
Projects
None yet
Development

No branches or pull requests

2 participants