Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Macro or equivalent in reStructuredText?

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
like image 228
prosseek Avatar asked Feb 18 '11 20:02

prosseek


1 Answers

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

like image 59
Karl Bartel Avatar answered Oct 08 '22 22:10

Karl Bartel