mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Propagate value of DEFAULT_LANG to docutils reST parser.
That way the parsed node tree gets proper information about the language, which can be then used for e.g. language-aware smart quotes or hyphenation.
This commit is contained in:
parent
34103cd5dd
commit
abb91fc3be
1 changed files with 1 additions and 0 deletions
|
|
@ -234,6 +234,7 @@ class RstReader(BaseReader):
|
|||
extra_params = {'initial_header_level': '2',
|
||||
'syntax_highlight': 'short',
|
||||
'input_encoding': 'utf-8',
|
||||
'language_code': self.settings.get('DEFAULT_LANG'),
|
||||
'exit_status_level': 2,
|
||||
'embed_stylesheet': False}
|
||||
user_params = self.settings.get('DOCUTILS_SETTINGS')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue