Hi all,

Trying to convert a text file with some Stata code into a word document. Text file looks like this:

Code:
# Some example of markdown


We will use example number three


## A subheading

~~~~
<<dd_do>>
webuse auto, clear
summarize price
<</dd_do>>
~~~~

The mean of price is <<dd_display: %9.0g r(mean)>>. We will also check the
relationship between **mpg** and **weight**.


<<dd_do:quietly>>
scatter mpg weight
<</dd_do>>
<<dd_graph: saving("graph.svg") replace height(400)>>

Stata code looks like this

Code:
dyndoc "try.txt", replace docx
Output tells me
Code:
 option docx not allowed
Works fine when I drop docx and convert to HTML.

I am using Stata 15. Any help would be appreciated!