Sample directives only work on parts, chapters, and sections. The directive needs to be on the line above a new part, chapter, or section.
So, this would work:
{sample: true}
# Chapter One
This is included in the sample.
...but this would not work:
{sample: true}
This is included in the sample.