Previously the RainDocument had only one field for distinguishing the front matter from the body of a dotrain document. The field frontmatter contained the front matter, and the field text contained the entire document text.
This adds another field body which contains only the rainlang (i.e. full text minus frontmatter).
It might make more sense to make the .text() helper function return the string concat of frontmatter + body, and no longer redundantly store the full text in text, but I left that out of this PR.
Previously the
RainDocument
had only one field for distinguishing the front matter from the body of a dotrain document. The fieldfrontmatter
contained the front matter, and the fieldtext
contained the entire document text.This adds another field
body
which contains only the rainlang (i.e. full text minus frontmatter).It might make more sense to make the .text() helper function return the string concat of frontmatter + body, and no longer redundantly store the full text in
text
, but I left that out of this PR.