Thanks to Kit Baum an update to -markstat- is now available at SSC. To update type

Code:
ssc install markstat, replace
This update fixes a versioning issue that affected the -table- command, which changed syntax between Stata 16 and 17. Turns out -markstat- was setting version 14 explicitly, and therefore would run the old -table- command. Now it runs under the existing version of Stata, or whatever version the user has set, checking only that it is 14 or higher.

The update also extends the -.include filename- convention to include an html file in the document. The new -collect export- command, when used to export html with the -tableonly- option, will create both an html and a css file. The -.include- handler will now check to see if there is a css file of the same name, and if so it will include it as well. This may it maintains compatibility with commands that generate html only. By the way, if you plan to include several tables in a document, make sure when you export them you use the -prefix(class)- option to specify a different class for each table, say t1, t2, etc, otherwise all tables will use the styles of the first one.

Finally, the update modifies -markstat-'s own css (1) to compensate for a recent change in Pandoc that made the body a bit too narrow for Stata output, and (2) to avoid table style conflicts with -collect export-. The solution here was to change the default table styles so they apply only to tables without an explicit class, thus excluding tables generated by -collect export-, which always have a class. This maintains compatibility with Markdown tables, which need the styling, and hopefully doesn't break old code.