Closed farabolaza closed 3 years ago
We’re using the most basic myst API in the plugin, as documented. Considering you can also easily reproduce this outside of Nikola, it’s a myst issue. Please report a bug to the myst project, and without the Nikola context (run to_html
directly, with your REPL sample).
Hi, i asked to the myst project, and here it's their answer: So, as i suspected, sphinx is needed to get the proper output. At least to me, it means that using myst plugin in nikola has no sense because it won't parse all its features which somehow i can get from restructured text. Of course that myst its a nice mix of both worlds which I would prefer to have access to from nikolla.
Thanks for your support, nikola its a great project!
Maybe the plugin could be fixed to work without sphinx (by going through docutils.Document
?) — patches for this are welcome. (I’d suggest just using reST though.)
I'm not a programmer, so maybe chances are that my issue is not really a problem of the myst plugin.
All roles and directives that have a rst-like syntax are no parsed right by myst plugin, only the ones that are mardown-like.
In myst.py (line 66) we see
I tried to use the myst API to reproduce the behavior of
to_hml
by itself and it produces the same not valid html output.for instance
""" )
to_html(test)
Here\'s some text
\n\n- a list
\n
\n \n{ref}[target]