<!--- Template
- Write your ReStructuredText here !: This will be hidden on the GitHub Markdown.
<!--- Template
.. ..
[Template](# "Template that works with GitHub Markdown AND ReStructuredText at the same time !.")
- **Write your GitHub Markdown here**: This will be hidden on the ReStructuredText.
- MarkDown content needs 1 white space indent on the whole content to work, mandatory.
.. ..
<!--- `Template <#foo>`_
- `Write your ReStructuredText here ! <#bar>`_: This will be hidden on the GitHub Markdown.
.. --->
.. ..
[Template](# "Template that works with GitHub Markdown AND ReStructuredText at the same time !.")
- **Write your GitHub Markdown here**: This will be hidden on the ReStructuredText.
- MarkDown content needs 1 white space indent on the whole content to work, mandatory.
.. ..
<!--- `Template <#foo>`_
- `Write your ReStructuredText here ! <#bar>`_: This will be hidden on the GitHub Markdown.
.. --->
.. ..
[Template](# "Template that works with GitHub Markdown AND ReStructuredText at the same time !.")
- **Write your GitHub Markdown here**: This will be hidden on the ReStructuredText.
- MarkDown content needs 1 white space indent on the whole content to work, mandatory.
.. ..
<!--- `Template <#foo>`_
- `Write your ReStructuredText here ! <#bar>`_: This will be hidden on the GitHub Markdown.
.. --->
.. .. Template
.. ..
Based on this: https://gist.github.com/dupuy/1855764
I try everything to make it work and not look weird, is not possible, it gets too complex,
even if you try on the end you get a very weird syntax on both sides, instead this is the KISS way,
then I decided to try something like this PseudoCode:
Then I implemented it with Conditional Comments.
*.rst.md
file extension to know thats an universal file that will work for RST and MD.Merge 2 files (1 .RST, 1 .MD) on 1 Universal file:
π this Gist if you like the idea πΈ π