example: YAML front matter in child document

See also yihui/knitr#862
There was a bug in knitr. I just fixed it locally. Will push the fix later to Github. Thanks!