Remove native_divs
from allowed gfm extensions.
This allows `<div>` to be suppressed using `-raw_html`. Previously `native_divs` was enabled but could not be suppressed, because it was not in the list of available extensions for commonmark-based formats. Closes #7965.
This commit is contained in:
parent
c9cf8568bf
commit
54f6e1be9b
2 changed files with 54 additions and 2 deletions
|
@ -265,7 +265,6 @@ githubMarkdownExtensions :: Extensions
|
|||
githubMarkdownExtensions = extensionsFromList
|
||||
[ Ext_pipe_tables
|
||||
, Ext_raw_html
|
||||
, Ext_native_divs
|
||||
, Ext_auto_identifiers
|
||||
, Ext_gfm_auto_identifiers
|
||||
, Ext_autolink_bare_uris
|
||||
|
@ -356,7 +355,6 @@ getDefaultExtensions "plain" = plainExtensions
|
|||
getDefaultExtensions "gfm" = extensionsFromList
|
||||
[ Ext_pipe_tables
|
||||
, Ext_raw_html
|
||||
, Ext_native_divs
|
||||
, Ext_auto_identifiers
|
||||
, Ext_gfm_auto_identifiers
|
||||
, Ext_autolink_bare_uris
|
||||
|
|
54
test/command/7965.md
Normal file
54
test/command/7965.md
Normal file
|
@ -0,0 +1,54 @@
|
|||
```
|
||||
% pandoc -f markdown -t gfm
|
||||
Watson and Crick (1953)
|
||||
|
||||
<div id="refs" class="references csl-bib-body hanging-indent">
|
||||
|
||||
<div id="ref-WatsonCrick1953" class="csl-entry">
|
||||
|
||||
Watson, J. D., and F. H. C. Crick. 1953. “Molecular Structure of Nucleic
|
||||
Acids: A Structure for Deoxyribose Nucleic Acid.” *Nature* 171 (4356):
|
||||
737–38. <https://doi.org/10.1038/171737a0>.
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
^D
|
||||
Watson and Crick (1953)
|
||||
|
||||
<div id="refs" class="references csl-bib-body hanging-indent">
|
||||
|
||||
<div id="ref-WatsonCrick1953" class="csl-entry">
|
||||
|
||||
Watson, J. D., and F. H. C. Crick. 1953. “Molecular Structure of Nucleic
|
||||
Acids: A Structure for Deoxyribose Nucleic Acid.” *Nature* 171 (4356):
|
||||
737–38. <https://doi.org/10.1038/171737a0>.
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
```
|
||||
|
||||
```
|
||||
% pandoc -f markdown -t gfm-raw_html
|
||||
Watson and Crick (1953)
|
||||
|
||||
<div id="refs" class="references csl-bib-body hanging-indent">
|
||||
|
||||
<div id="ref-WatsonCrick1953" class="csl-entry">
|
||||
|
||||
Watson, J. D., and F. H. C. Crick. 1953. “Molecular Structure of Nucleic
|
||||
Acids: A Structure for Deoxyribose Nucleic Acid.” *Nature* 171 (4356):
|
||||
737–38. <https://doi.org/10.1038/171737a0>.
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
^D
|
||||
Watson and Crick (1953)
|
||||
|
||||
Watson, J. D., and F. H. C. Crick. 1953. “Molecular Structure of Nucleic
|
||||
Acids: A Structure for Deoxyribose Nucleic Acid.” *Nature* 171 (4356):
|
||||
737–38. <https://doi.org/10.1038/171737a0>.
|
||||
```
|
||||
|
Loading…
Add table
Reference in a new issue