*! version 1.4 17jul2018

*! Doug Hemken

Title

stmd2dyn Convert common Markdown to Stata dyndoc
dynamic document format.

Syntax

stmd2dyn
filename
[, options]

Main
saving(filename2) save dyndoc file as filename2

replace replace filename2 if it already exists

Other
hardwrap replace hard wraps (actual line breaks) with
the HTML tag <br>

nomsg suppress message of a link to targetfile

noremove suppress {cmd:<<dd_remove>> processing

nostop do not stop when an error occurs

Description

stmd2dyn Takes a Markdown document using conventional markdown
specification and converts it to Stata's dialect using dyndoc
dynamic tags.

Options

Main

saving filename2 to save the dyndoc, which can
then be processed by Stata.

replace replace filename2 if it already exists

More

Additional options which may be passed to dydndoc
are hardwrap, nomsg, noremove, and nostop

hardwrap specifies that hard wraps (actual line breaks) in the
Markdown document be replaced with the HTML line break tag <br>.

nomsg suppresses the message that contains a link to the target file.

noremove specifies that <<dd_remove>> and <</dd_remove>>
tags should not be processed.

nostop allows the document to continue being processed even if an error
occurs.

Remarks

If filename2 is not specified, then filename with an
.dyn file extension is tried.

For more on how to format documents, see help stmd.

Examples

. stmd2dyn using example.stmd

Author

Doug Hemken

Social Science Computing Cooperative

Univ of Wisc-Madison

dehemken@wisc.edu

https://www.ssc.wisc.edu/~hemken/Stataworkshops

https://github.com/Hemken/stmd2dyn