Now ox-hugo by default requires text, to be sub/super-scripted, to
be wrapped in {}.
So now "a_b" will be exported as "a_b", but "a_{b}" will be exported
as "a<sub>b</sub>". To revert back to the earlier behavior, user needs
to add "#+OPTIONS: ^:t" to their Org file.
master
parent
113188296c
commit
b35dfa0d4a
8 changed files with 75 additions and 5 deletions
@ -0,0 +1,14 @@ |
||||
+++ |
||||
title = "Sub/superscripts don't require braces" |
||||
tags = ["export-settings"] |
||||
draft = false |
||||
+++ |
||||
|
||||
## Following text will export `_..` as subscript and `^..` as superscript {#following-text-will-export-dot-dot-as-subscript-and-dot-dot-as-superscript} |
||||
|
||||
a<sub>b</sub> a<sub>bc</sub> a<sup>b</sup> a<sup>bc</sup> |
||||
|
||||
|
||||
## Following text will export `_{..}` as subscript and `^{..}` as superscript {#following-text-will-export-dot-dot-as-subscript-and-dot-dot-as-superscript} |
||||
|
||||
a<sub>b</sub> a<sub>bc</sub> a<sup>b</sup> a<sup>bc</sup> |
||||
@ -0,0 +1,14 @@ |
||||
+++ |
||||
title = "Sub/superscripts require braces" |
||||
tags = ["export-settings"] |
||||
draft = false |
||||
+++ |
||||
|
||||
## Following text will export `_` and `^` verbatim {#following-text-will-export-and-verbatim} |
||||
|
||||
a\_b a\_bc a^b a^bc |
||||
|
||||
|
||||
## Following text will export `_{..}` as subscript and `^{..}` as superscript {#following-text-will-export-dot-dot-as-subscript-and-dot-dot-as-superscript} |
||||
|
||||
a<sub>b</sub> a<sub>bc</sub> a<sup>b</sup> a<sup>bc</sup> |
||||
Loading…
Reference in new issue