Skip to content

Commit

Permalink
switch to html5
Browse files Browse the repository at this point in the history
  • Loading branch information
nkr0 committed Dec 2, 2024
1 parent 07c7eac commit 98fab6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pelican/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import docutils.core
import docutils.io
from docutils.parsers.rst.languages import get_language as get_docutils_lang
from docutils.writers.html4css1 import HTMLTranslator, Writer
from docutils.writers.html5_polyglot import HTMLTranslator, Writer

from pelican import rstdirectives # NOQA
from pelican.cache import FileStampDataCacher
Expand Down Expand Up @@ -178,8 +178,8 @@ class RstReader(BaseReader):
"""Reader for reStructuredText files
By default the output HTML is written using
docutils.writers.html4css1.Writer and translated using a subclass of
docutils.writers.html4css1.HTMLTranslator. If you want to override it with
docutils.writers.html5_polyglot.Writer and translated using a subclass of
docutils.writers.html5_polyglot.HTMLTranslator. If you want to override it with
your own writer/translator (e.g. a HTML5-based one), pass your classes to
these two attributes. Look in the source code for details.
Expand Down

0 comments on commit 98fab6e

Please sign in to comment.