Giter Site home page Giter Site logo

marianoguerra / rst2html5 Goto Github PK

View Code? Open in Web Editor NEW
177.0 21.0 51.0 1.45 MB

transform restructuredtext documents to html5 + twitter's bootstrap css, deck.js or reveal.js

Home Page: http://marianoguerra.github.com/rst2html5

License: MIT License

CSS 0.72% Python 9.48% HTML 89.66% Makefile 0.03% Shell 0.11%

rst2html5's Introduction

rst2html5 tools - RestructuredText to HTML5 + bootstrap css

We all love rst and the ability to generate any format, but the rst2html tool generates really basic html and css.

This tool will generate newer, nicer, more readable markup and provide ways to modify the output with extensions like nice css thanks to twitter's bootstrap css or online presentations with deck.js

get it

via pip:

pip install rst2html5-tools

locally:

git clone https://github.com/marianoguerra/rst2html5.git
cd rst2html5
git submodule init
git submodule update

sudo python setup.py install

use it

to generate a basic html document:

rst2html5 examples/slides.rst > clean.html

to generate a set of slides using deck.js:

rst2html5 --deck-js --pretty-print-code --embed-content examples/slides.rst > deck.html

to generate a set of slides using reveal.js:

rst2html5 --jquery --reveal-js --pretty-print-code examples/slides.rst > reveal.html

to generate a set of slides using impress.js:

rst2html5 --stylesheet-path=html5css3/thirdparty/impressjs/css/impress-demo.css --impress-js examples/impress.rst > output/impress.html

to generate a page using bootstrap:

rst2html5 --bootstrap-css --pretty-print-code --jquery --embed-content examples/slides.rst > bootstrap.html

to higlight code with pygments:

rst2html5 --pygments examples/codeblock.rst > code.html

note that you will have to add the stylesheet for the code to actually highlight, this just does the code parsing and html transformation.

to embed images inside the html file to have a single .html file to distribute add the --embed-images option.

post processors support optional parameters, they are passed with a command line option with the same name as the post processor appending "-opts" at the end, for example to change the revealjs theme you can do:

rst2html5 --jquery --reveal-js --reveal-js-opts theme=serif examples/slides.rst > reveal.html

you can also pass the base path to the theme css file:

rst2html5 --jquery --reveal-js --reveal-js-opts theme=serif,themepath=~/mytheme examples/slides.rst > reveal.html

it will look at the theme at ~/mytheme/serif.css

options are passed as a comma separated list of key value pairs separated with an equal sign, values are parsed as json, if parsing fails they are passed as strings, for example here is an example of options:

--some-processor-opts theme=serif,count=4,verbose=true,foo=null

if a key is passed more than once that parameter is passed to the processor as a list of values, note that if only one value is passed it's passed as it is, the convenience function as_list is provided to handle this case if you want to always receive a list.

to add custom js files to the resulting file you can use the --add-js post processor like this:

rst2html5 slides.rst --add-js --add-js-opts path=foo.js,path=bar.js

that command will add foo.js and bar.js as scripts in the resulting html file.

Pretty Print Code Notes

enable it:

--pretty-print-code

add language specific lexers:

--pretty-print-code-opts langs=clj:erlang

Note: you have to pass both options when passing opts to prettify like this:

--pretty-print-code --pretty-print-code-opts langs=clj:erlang

that is, the name of the languages separated by colons, available lexers at the moment of this writing are:

  • apollo
  • basic
  • clj
  • css
  • dart
  • erlang
  • go
  • hs
  • lisp
  • llvm
  • lua
  • matlab
  • ml
  • mumps
  • n
  • pascal
  • proto
  • rd
  • r
  • scala
  • sql
  • tcl
  • tex
  • vb
  • vhdl
  • wiki
  • xq
  • yaml

you can see the available lexers under html5css3/thirdparty/prettify/lang-*.js

RevealJs Notes

to print pass --reveal-js-opts printpdf=true, for example:

rst2html5 --jquery --reveal-js --reveal-js-opts printpdf=true examples/slides.rst > reveal-print.html

this can be used to open with chrome or chromium and print as pdf as described here: https://github.com/hakimel/reveal.js#pdf-export

Math Support

Use the math role and directive to include inline math and block-level equations into your document:

When :math`a \ne 0`, there are two solutions to :math:`ax^2 + bx + c = 0`
and they are

.. math::

   x = {-b \pm \sqrt{b^2-4ac} \over 2a}

Both of these support a basic subset of LaTeX syntax.

By default, MathJax is used for displaying math. You can choose a different output format using the --math-output command line option:

  • --math-output mathjax uses MathJax (the default)
  • --math-output html will use plain HTML + CSS
  • --math-output mathml will use MathML
  • --math-output latex outputs raw LaTeX

If you use MathJax, you can use the --mathjax-url and -mathjax-config command line options to configure a custom MathJax JavaScript URL and to provide a file with a custom MathJax configuration, respectively.

If you use HTML + CSS output, you can use the --math-css command line option to configure a custom math stylesheet.

Note that the old MathJax postprocessor (activated using --mathjax) has been deprecated.

see it

you can see the examples from the above commands here:

example of video directive

test it

We use tox to run our test suite. After installing tox you can execute the tests by running tox in the project's root directory.

The test cases can be found in html5css3/tests.py.

want to contribute ?

clone and send us a pull request!

git clone https://github.com/marianoguerra/rst2html5.git
cd rst2html5
git submodule update --init
python setup.py develop

note to self to release

  • update version on setup.py
python setup.py sdist upload

rst2html5's People

Contributors

arcimboldo avatar asermax avatar faassen avatar jdillard avatar jjconti avatar lowks avatar marianoguerra avatar marsam avatar mgaitan avatar mrshu avatar nabilbendafi avatar ntamas avatar torfsen avatar wwoods avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rst2html5's Issues

Support minification

Having support for some level of minification (e.g., just unnecessary whitespace removal) would be wonderful.

If you find that this option might do well as a level of minification with the most serious level doing full removal of optional tags and the like, that would be even better!

Better instructions for reveal-js

Now that rst2html5 is installable on system level by pip, a new problem arises:

rst2html5 --reveal-js slides.rst slides.html

IOError: [Errno 2] File o directory non esistente: '/usr/local/lib/python2.7/dist-packages/html5css3/thirdparty/revealjs/css/reveal.css'

Better improve the documentation to show how user can get revealjs out of the box.

html tag will be escaped with --pygments

the html tag generated by syntax highlight with --pygments will be escaped,
so something like <div class="highlight"> will become &lt;div class="highlight"&gt;

Python version : 2.7.8

Error when attempting to align an image to the right

I have the following snippet in my index.rst:

.. |hackerlogo| image:: hackerlogo.png
                :alt: hacker-emblem
                :align: bottom
                :target: http://www.catb.org/hacker-emblem/

This works just fine; however, if I change bottom to right (a valid value according to the docutils documentation), I get the following error when running rst2html5:

index.rst:55: (ERROR/3) Error in "image" directive: "right" is not a valid value for the "align" option within a substitution definition.  Valid values for "align" are: "top", "middle", "bottom".
index.rst:55: (WARNING/2) Substitution definition "hackerlogo" empty or invalid.

.. |hackerlogo| image:: hackerlogo.png
                :alt: hacker-emblem
                :align: right
                :target: http://www.catb.org/hacker-emblem/
index.rst:51: (ERROR/3) Undefined substitution referenced: "hackerlogo".

As a result, to get the desired affect, I'm going into the generated index.html and manually changeing class="align-bottom" to class="align-right". Ideally, rst2html5 would recognize right as a valid value and set the class accordingly.

Fails to compile

Just updated rst2html5 and submodules, and I'm consistently getting errors even for
previously compiling slides.

Checked with an older revision, the same rst compiles fine.

./bin/rst2html5 --embed-images --jquery --reveal-js --pretty-print-code
--embed-content --traceback 2013_02_07_qgis_server_genova.rst test.html
Traceback (most recent call last):
File "./bin/rst2html5", line 27, in
description=description)
File "/usr/lib/pymodules/python2.7/docutils/core.py", line 339, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/usr/lib/pymodules/python2.7/docutils/core.py", line 213, in publish
output = self.writer.write(self.document, self.destination)
File "/usr/lib/pymodules/python2.7/docutils/writers/init.py", line 77, in write
self.translate()
File "./html5css3/init.py", line 116, in translate
processor(tree, embed)
File "./html5css3/postprocessors.py", line 164, in embed_images
for image in tree.findall(".//img"):
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 390, in findall
return ElementPath.findall(self, path, namespaces)
File "/usr/lib/python2.7/xml/etree/ElementPath.py", line 293, in findall
return list(iterfind(elem, path, namespaces))
File "/usr/lib/python2.7/xml/etree/ElementPath.py", line 128, in select
for e in elem.iter(tag):
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 477, in iter
for e in e.iter(tag):
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 477, in iter
for e in e.iter(tag):
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 477, in iter
for e in e.iter(tag):
AttributeError: 'str' object has no attribute 'iter'

ImportError: No module named docutils.core

Getting it:

warlo@default:~/Documents$ git clone https://github.com/marianoguerra/rst2html5.git
Cloning into 'rst2html5'...
remote: Counting objects: 316, done.
remote: Compressing objects: 100% (214/214), done.
remote: Total 316 (delta 121), reused 285 (delta 90)
Receiving objects: 100% (316/316), 1.22 MiB | 442 KiB/s, done.
Resolving deltas: 100% (121/121), done.

Following install instruction #1:
warlo@default:~/Documents$ cd rst2html5

Following install instruction #2:
warlo@default:~/Documents/rst2html5$ git submodule update --init
Submodule 'thirdparty/deckjs' (https://github.com/imakewebthings/deck.js) registered for path 'thirdparty/deckjs'
Submodule 'thirdparty/revealjs' (https://github.com/hakimel/reveal.js.git) registered for path 'thirdparty/revealjs'
Cloning into 'thirdparty/deckjs'...
remote: Counting objects: 1674, done.
remote: Compressing objects: 100% (648/648), done.
remote: Total 1674 (delta 1053), reused 1605 (delta 1012)
Receiving objects: 100% (1674/1674), 534.64 KiB | 223 KiB/s, done.
Resolving deltas: 100% (1053/1053), done.
Submodule path 'thirdparty/deckjs': checked out 'e1ba017e0e2bb075edeb0f7b9681cad80e7a19e7'
Cloning into 'thirdparty/revealjs'...
remote: Counting objects: 1952, done.
remote: Compressing objects: 100% (887/887), done.
remote: Total 1952 (delta 1070), reused 1817 (delta 975)
Receiving objects: 100% (1952/1952), 734.89 KiB | 316 KiB/s, done.
Resolving deltas: 100% (1070/1070), done.
Submodule path 'thirdparty/revealjs': checked out '143fc85c657a4953d3f3b878b845cc60efbed748'

Running it:
warlo@default:~/Documents/rst2html5$ bin/rst2html5 --jquery --reveal-js --pretty-print-code examples/pres.rst > reveal.html
Traceback (most recent call last):
File "bin/rst2html5", line 20, in
from docutils.core import publish_cmdline, default_description
ImportError: No module named docutils.core

I tried with the 3 commands suggested (reveal, deck and bootstrap) with no luck, I also tried running it over the example slides.rst, still no go.

Error with Python 2.7.5 and docutils 0.11

Python 2.7.5, OSX Mountain Lion, rst2html cloned from source on github on 8/8/13. When running:

$ bin/rst2html5 --jquery --reveal-js --pretty-print-code --embed-content --traceback examples/slides.rst > reveal.html

I get the following error:

Traceback (most recent call last):
File "bin/rst2html5", line 30, in
description=description)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 352, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/Library/Python/2.7/site-packages/docutils/core.py", line 219, in publish
output = self.writer.write(self.document, self.destination)
File "/Library/Python/2.7/site-packages/docutils/writers/init.py", line 80, in write
self.translate()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 122, in translate
visitor = self.translator_class(self.document)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/init.py", line 369, in init
styles = utils.get_stylesheet_list(self.settings)
File "/Library/Python/2.7/site-packages/docutils/utils/init.py", line 519, in get_stylesheet_list
for path in stylesheets]
AttributeError: Values instance has no attribute 'stylesheet_dirs'

I think I have traced this to some new stylesheet_dirs setting that was added to docutils at 0.11 (http://docutils.sourceforge.net/RELEASE-NOTES.html#id39).

My workaround was to create a virtualenv with an older OSX version (2.7.2) of Python, install docutils 0.10 via pip, and then rst2html5 is working properly.

AttributeError: 'module' object has no attribute '_ElementInterface'

rst2html5 seems to be broken on py3.4, getting the same traceback from just running it without any command line options. Likely related to the same things as this rst2odt bug report, unfortunately it doesn't point to what fixed it.

python 3.4.1
python-docutils 0.12

Traceback (most recent call last):
File "/usr/bin/rst2html5", line 9, in
load_entry_point('rst2html5-tools==0.2.3', 'console_scripts', 'rst2html5')()
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 339, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2457, in load_entry_point
return ep.load()
File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2171, in load
['name'])
File "/home/kyrias/build/rst2html5-git/a/html5css3/init.py", line 30, in
from . import html
File "/home/kyrias/build/rst2html5-git/a/html5css3/html.py", line 13, in
class Element(ET._ElementInterface, object):
AttributeError: 'module' object has no attribute '_ElementInterface'

Placement of text relative to images

The placement of text relative to images does not work well: it it is too long, it does not wrap, and it is placed below the image. The directives of the type
:align: right
etc. do not seem to be honnoured.
Example:

Cool stuff: cartography

.. image:: images/fill_jp.png
:width: 350 px
:align: right

  • Advanced symbology

places the text on the side, whereas

Cool stuff: cartography

.. image:: images/fill_jp.png
:width: 350 px
:align: right

  • Advanced symbology blabla blabla blabla blabla blabla

places the text at the bottom, no wrap

No math support at all?

rst2html supports math:

.. math::

   x^2

divs get some math processing depending on the command line options of the rst2html. However rst2html5 just leaves plain divs.

iframe

this is not really an issue, but I don't quite understand how i could embed an iframe inside a presentation. any help appreciated!

How to use custom theme

Currently, to use custom revealjs themes one has to add:

--reveal-js-opts theme=mytheme

and the theme must be in

/usr/local/lib/python2.7/dist-packages/html5css3/thirdparty/revealjs/css/theme/

which is not nice; it is unclear from the instruction if a custom theme can be used from a custom dir (e.g. ./).

Installation with setup fails to create reveal.js presentation

After installing rst2html5 by running python setup.py install here is what the output looks like:

IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/rst2html5-0.1-py2.7.egg/html5css3/thirdparty/revealjs/css/reveal.css'

Is there something wrong at my end?

Attractive simple CSS styling HTML5 semantics

I think, if by default there is included CSS that it should be an attractive default. Maybe a stripped down bootstrap would do the trick? Or rather if we could find a creative commons style we could adopt for this. I'm thinking rst2html5 should generate a good looking document if the effort is going to be made to include a style sheet.

Change CSS with --deck-js

I have some slides.rst with a lot of code in each slide so I need to cascade a CSS with something like that::

.deck-container .slide pre { font-size: 40%; }

I use deck-js cmd::

$ rst2html5 --deck-js --pretty-print-code slides.rst > slides.html

From the documentation I've try --stylesheet-path and --stylesheet but it did not work in this context.

rst2html5.css not found

I've followed the README and get no success:

tin@azulita:~/lab/charla__doc__/rst2html5$ ./bin/rst2html5 --deck-js --pretty-print-code --embed-content examples/slides.rst > deck.html
IOError: [Errno 2] No existe el archivo o el directorio: '/usr/local/lib/python2.7/dist-packages/rst2html5.css'
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.9.1 [release]),
Python version (2.7.2+), your OS type & version, and the
command line used.
tin@azulita:~/lab/charla__doc__/rst2html5$ 

I've installed it via python setup.py install and the error pesists.
Added --traceback to debug:

tin@azulita:~/lab/charla__doc__$ rst2html5 --jquery --reveal-js --pretty-print-code presentacion.rst > reveal.htmlIOError: [Errno 2] No existe el archivo o el directorio: '/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/rst2html5.css'
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <[email protected]>.
Include "--traceback" output, Docutils version (0.9.1 [release]),
Python version (2.7.2+), your OS type & version, and the
command line used.
tin@azulita:~/lab/charla__doc__$ rst2html5 --jquery --reveal-js --pretty-print-code --traceback presentacion.rst > reveal.html
Traceback (most recent call last):
  File "/usr/local/bin/rst2html5", line 5, in <module>
    pkg_resources.run_script('rst2html5==0.1', 'rst2html5')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 1239, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/EGG-INFO/scripts/rst2html5", line 27, in <module>
    description=description)
  File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 356, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 223, in publish
    output = self.writer.write(self.document, self.destination)
  File "/usr/local/lib/python2.7/dist-packages/docutils/writers/__init__.py", line 77, in write
    self.translate()
  File "/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/html5css3/__init__.py", line 107, in translate
    visitor = self.translator_class(self.document)
  File "/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/html5css3/__init__.py", line 340, in __init__
    self.head.append(self.css(style))
  File "/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/html5css3/__init__.py", line 344, in css
    content = open(path).read()
IOError: [Errno 2] No existe el archivo o el directorio: u'/usr/local/lib/python2.7/dist-packages/rst2html5-0.1-py2.7.egg/rst2html5.css'

stylesheet option not working?

I have upgraded to the latest version of rst2html5, and I'm testing some options:

./bin/rst2html5 --embed-images --jquery --reveal-js --pretty-print-code --embed-content
--stylesheet-path=html5css3/thirdparty/revealjs/css/theme/beige.css
2013_03_07_girona.rst build/slides.html

Apparently the --stylesheet-path option is not working, as I get always the same result regardless of which file I choose.

Beautify HTML generation

The HTML code generated it in minfied form whereas the various javascript code included in well-formed/readable. It will be helpful, if the html generated is in human readable and indented well. Does this appeal as a good feature request?

Embed background image

The image(s) defined via css, e.g.
background-image: url('logo_faunalia.png');
in body is not embedded when using --embed-images

--reveal-js-opts ignored except theme

The documentation says --reveal-js-opts are passed to the post processor, in this case the reveal.js post processor. I expected that this could be used to pass options into the Reveal.initialize() function. Except for theme they are however ignored; I can't find code that would generate this either - it always creates a fixed initialize().

Perhaps I don't understand the documentation correctly?

RST elements header and footer

The RST elements header and footer are for placing markup at the, believe it or not, header and footer of the site. There is no real specifics on the implementation on this. I guess it could just be a div.header after the docinfo table and div.footer at the end of the page.

Pull request #30 handles the HTML5 header element. Seeing as there is no way to define a section footer in RST, the HTML5 footer element isn't required.

deck_js does not handle correctly first slide

The following code is correctly formatted in rst2s5, but unusable when generated by rst2html5

Title of the presentation

Author: Chuck Norris

Conference About the Next World

First text

  • argument1
  • ...

Support automatic pygment highlighting

I understand that, at the moment, though --pygments allows for the generation of html suitable for pygment highlighting, rst2html5 currently requires the user to manually write a stylesheet for the highlighting.

Is it feasible to automatically generate basic pygments stylesheets (which users could edit if they so choose)?

rst2html5 --reveal-js does not seem to work

./bin/rst2html5 --reveal-js --pretty-print-code --embed-content examples/slides.rst > reveal.html

the slides are not shown, even if the code is generated.
Tried with my own rst, only a portion of text is displayed

Dont work function instead class

Traceback (most recent call last):
File "./rst2html5", line 19, in
import html5css3
File "/home/josx/Desarrollo/rst2html5/html5css3/init.py", line 35, in
from html import *
File "/home/josx/Desarrollo/rst2html5/html5css3/html.py", line 19, in
class TagBase(ET.Element):
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str

Maybe this
http://stackoverflow.com/questions/2231427/error-when-calling-the-metaclass-bases-function-argument-1-must-be-code-not

I am testing with pyhton 2.6

Add the incremental option

See e.g. man pandoc

   -i, --incremental
          Make list items in slide shows  display  incrementally  (one  by
          one).  The default is for lists to be displayed all at once.

adding R Pygments to the code

I use this

.. code:: python

## by indexes starting by 0 [idx:idx]
>>> s[0], s[1], s[0:4] 
('h', 'e', 'hell')

>>> l[1], l[1] / 10 + 2**3
>  (3.14, 8.314)

And I get Syntax highlighting.

What need to be done to get syntax highlighting for R ?

.. code:: R

  d <- rbind(d, data.frame(Name = "Q", note = 2))
  d <- rbind(d, data.frame(Name = "Z", note = 26))

I try with R, S, Rscript, ...
pygment is suppose to do this : http://pygments.org/demo/251235/

AttributeError: 'module' object has no attribute 'validate_comma_separated_list'

docutils 0.8.1 (on debian wheezy)

Traceback (most recent call last):
File "./bin/rst2html5", line 25, in
import html5css3
File "./html5css3/init.py", line 47, in
class Writer(writers.Writer):
File "./html5css3/init.py", line 72, in Writer
'validator': frontend.validate_comma_separated_list}),
AttributeError: 'module' object has no attribute 'validate_comma_separated_list'

Clarify licensing

The setup.py file seems to indicate that this project is MIT licensed. However, I do not see a COPYING or LICENSE file in the repo. It would make packaging this program simpler if you provided a copy of the license itself.

raw html is escaped

If the follwing is found in a to-be-translated rst document:

.. raw:: html

   Hello <b> World</b>

It is translated to this:
Hello &lt;b&gt; World&lt;/b&gt;

It should not escape the html, but instead should work like the vanilla rst2html and leave the tags in tact.

Image auto resize

Currently image resizing is the most time consuming and unpredictable task of slide production. Different browsers, and different projector resolutions, make the outcome of a slide show always uncertain.
A huge improvement would be to have an "auto resize" image (and/or text) directive.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.