-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👌 IMPROVE: Store rawtext in AST nodes (for gettext) (#301)
In this commit we ensure that the raw text is propagated from the Markdown tokens to the Sphinx AST. In particular, this is used by the `gettext` builder, to generate translation POT templates.
- Loading branch information
1 parent
86df2ea
commit c868b3a
Showing
5 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extensions = ["myst_parser"] | ||
exclude_patterns = ["_build"] | ||
copyright = "2020, Executable Book Project" | ||
myst_enable_extensions = ["deflist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# **bold** text 1 | ||
|
||
**bold** text 2 | ||
|
||
> **bold** text 3 | ||
```{eval-rst} | ||
.. note:: | ||
**bold** text 4 | ||
``` | ||
|
||
* **bold** text 5 | ||
|
||
1. **bold** text 6 | ||
|
||
**bold** text 7 | ||
: **bold** text 8 | ||
|
||
| **bold** text 9 | | ||
| ---------------- | | ||
| **bold** text 10 | | ||
|
||
<div markdown=1> | ||
|
||
**bold** text 11 | ||
|
||
</div> | ||
|
||
**skip** text | ||
|
||
``` | ||
**skip** text | ||
``` | ||
|
||
```json | ||
{ | ||
"skip": "text" | ||
} | ||
``` | ||
|
||
<h3>**skip** text</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) 2020, Executable Book Project | ||
# This file is distributed under the same license as the Python package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Python \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: \n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: ../../index.md:1 | ||
msgid "**bold** text 1" | ||
msgstr "" | ||
|
||
#: ../../index.md:3 | ||
msgid "**bold** text 2" | ||
msgstr "" | ||
|
||
#: ../../index.md:5 | ||
msgid "**bold** text 3" | ||
msgstr "" | ||
|
||
#: ../../index.md:10 | ||
msgid "**bold** text 4" | ||
msgstr "" | ||
|
||
#: ../../index.md:13 | ||
msgid "**bold** text 5" | ||
msgstr "" | ||
|
||
#: ../../index.md:15 | ||
msgid "**bold** text 6" | ||
msgstr "" | ||
|
||
#: ../../index.md:17 | ||
msgid "**bold** text 7" | ||
msgstr "" | ||
|
||
#: ../../index.md:18 | ||
msgid "**bold** text 8" | ||
msgstr "" | ||
|
||
#: ../../index.md:0 | ||
msgid "**bold** text 9" | ||
msgstr "" | ||
|
||
#: ../../index.md:0 | ||
msgid "**bold** text 10" | ||
msgstr "" | ||
|
||
#: ../../index.md:26 | ||
msgid "**bold** text 11" | ||
msgstr "" |