mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3594: LaTeX: single raw directive has been considereed as block level element
This commit is contained in:
3
tests/roots/test-directives-raw/conf.py
Normal file
3
tests/roots/test-directives-raw/conf.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
master_doc = 'index'
|
||||
40
tests/roots/test-directives-raw/index.rst
Normal file
40
tests/roots/test-directives-raw/index.rst
Normal file
@@ -0,0 +1,40 @@
|
||||
test-directives-raw
|
||||
===================
|
||||
|
||||
HTML
|
||||
----
|
||||
|
||||
standard
|
||||
^^^^^^^^
|
||||
|
||||
.. raw:: html
|
||||
|
||||
standalone raw directive (HTML)
|
||||
|
||||
with substitution
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
HTML: abc |HTML_RAW| ghi
|
||||
|
||||
.. |HTML_RAW| raw:: html
|
||||
|
||||
def
|
||||
|
||||
LaTeX
|
||||
-----
|
||||
|
||||
standard
|
||||
^^^^^^^^
|
||||
|
||||
.. raw:: latex
|
||||
|
||||
standalone raw directive (LaTeX)
|
||||
|
||||
with substitution
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
LaTeX: abc |LATEX_RAW| ghi
|
||||
|
||||
.. |LATEX_RAW| raw:: latex
|
||||
|
||||
def
|
||||
Reference in New Issue
Block a user