Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions myst_parser/mdit_to_docutils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,13 @@ def run_directive(
lineno=position,
# the line offset of the first line of the content
content_offset=parsed.body_offset,
# a string containing the entire directive
block_text="\n".join(parsed.body),
# A string containing the entire directive, including options and full,
# unparsed content.
# XXX Ideally, and to mirros rST's behavior, it should also contain the
# complete directive header (i.e the "```{name} {arguments}" line), and
# the directive closing line (i.e. the "```" line), but that is not
# currently possible unless we refactor the parser.
block_text=content,
state=state,
state_machine=state_machine,
)
Expand Down