diff --git a/docs/content.json b/docs/content.json index 2a57187ec97644c4eef01bab1ab5b8af06246df2..9335e0983c30aca80dbbdaaef38ed01e36db47c2 100644 --- a/docs/content.json +++ b/docs/content.json @@ -123,7 +123,7 @@ "single", "double" ], - "text": "text" + "content": "inlines" }, "math": { "eclass": "inline", diff --git a/docs/content.md b/docs/content.md index cd8b00c7de37ce43a3ba201bcfe636be6f115577..f417821d35c3e0a1a16290bb7f328880a3be92fd 100644 --- a/docs/content.md +++ b/docs/content.md @@ -249,7 +249,7 @@ | etype | `quoted` | | | eclass | `inline` | | | quotetype | `single` \| `double` | | -| text | String | | +| content | \[[Inline](#inlines)\] | | ### math diff --git a/fgs/pandoc.py b/fgs/pandoc.py index 3bff878e6f64e978460b53185cddd1bdc9b7067e..d3ebc20b9518093968246e0a2c2be0c73d53036e 100644 --- a/fgs/pandoc.py +++ b/fgs/pandoc.py @@ -361,7 +361,7 @@ class InlineQuoted(Inline): # QuoteType Text etype = "quoted" def parse_internal(self, pandocraw): self.quotetype = self.parse_enum({"SingleQuote": "single", "DoubleQuote": "double"}, pandocraw[0]) - self.text = self.parse_text(pandocraw[1]) + self.content = self.parse_inlines(pandocraw[1]) class InlineMath(Inline): # MathType Text etype = "math" diff --git a/theme/templates/macros/content_renderer.html b/theme/templates/macros/content_renderer.html index a9bf004e457c0cafd19abbcc57e091bff48a2bde..610e05f96bdbda1872189542e470edf2a7d15e48 100644 --- a/theme/templates/macros/content_renderer.html +++ b/theme/templates/macros/content_renderer.html @@ -302,13 +302,13 @@ {%- macro render_inline_quoted(inline, lang) -%} {%- set quotetype = inline['quotetype'] -%} - {%- set text = inline['text'] -%} + {%- set content = inline['content'] -%} {%- if quotetype == "single" -%} - {{ t[lang].quotations.single.left }}{{ text|e }}{{ t[lang].quotations.single.right }} + {{ t[lang].quotations.single.left }}{{ render_inlines(content, lang) }}{{ t[lang].quotations.single.right }} {%- elif quotetype == "double" -%} - {{ t[lang].quotations.double.left }}{{ text|e }}{{ t[lang].quotations.double.right }} + {{ t[lang].quotations.double.left }}{{ render_inlines(content, lang) }}{{ t[lang].quotations.double.right }} {%- else -%} - "{{ text|e }}" + "{{ render_inlines(content, lang) }}" {%- endif -%} {%- endmacro -%}