I have a <form>
like this all the times.
.. raw:: html
<form action="txmt://open/?url=file:///Users/smcho/smcho/works/prgtask/ni/gtest_boost_options/readme.txt">
<button type="submit">Edit</button>
</form>
Is there any macro or equivalent in reStructuredText so that I can get the same result, for example?
.. form :: /Users/smcho/smcho/works/prgtask/ni/gtest_boost_options/readme.txt
You could implement your own "form" directive in python. For instructions on how to do that, see http://docutils.sourceforge.net/docs/howto/rst-directives.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With