How It Works
This script parses a custom Markdown flavour (.xb.md), and converts it to HTML.
It then copies the data to your clipboard, setting the MIME type to text/html, so that Word can extract some information on how to style the text.
The input text is first split into numbered problems. Each problem is then divided into questions and step-by-step solutions. Then, any bullet-points, tables, fractions, italics, etc. are translated from Markdown to HTML.
Word's HTML parser has its quirks, but you should expect the preview to look fairly similar to the Word document that is being generated.
Unless the input text is too long, the input text is compressed and included in the URL, so the problems can be shared by copying the link to the page.