From: Roberto A. <ra...@ne...> - 2015-06-26 13:01:11
|
On 26/06/15 09:25, Matěj Cepl wrote: > On 2015-04-23, 08:01 GMT, Peter Funk wrote: >> BTW: Who can contribute reports about her/his experiences >> with pandoc ( https://github.com/jgm/pandoc ) to this discussion? >> I've experimented in a project with the following makefile rule but >> later decided to manually edit the resulting .rst files a lot. > https://github.com/jgm/pandoc/issues/2231#issuecomment-111875559 > > rST processor which cannot process .. image: elements is kind of > difficult to use. And now, I cannot upgrade pandoc (more recent > one doesn't build on my system, and I don't want to use > unpackaged programs anyway). > > However, I have decided to make The Right Thing™ and wrote my > hexo renderer using rst2html > (https://gitlab.com/mcepl/hexo-renderer-restructuredtext) except > now I have a different problem (issue #1 in that repository). > rst2html generates only complete HTML documents and relies on > tons of CSS stylesheets. > > Would it be possible to somehow persuade rst2html to produce > just as plain HTML as possible without dependency on too much of > CSS? In Nikola I just extract the body element using lxml and put it in the template where I want it. The CSS ... we have a rst.css which is extracted from docutils and a code.css generated by pygments. The rst.css ... it's very old fashioned, with the 3-d sidebars and such, so we have an outstanding improvement request to redo via LESS so it can be easier to tweak, but haven't got around to hacking on it yet. |