mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
Add test for header nested in a block
This commit is contained in:
parent
8ae002b040
commit
6a22f6b04b
3 changed files with 32 additions and 0 deletions
22
tests/sphinx_nested_header_block/conf.py
Normal file
22
tests/sphinx_nested_header_block/conf.py
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from recommonmark.parser import CommonMarkParser
|
||||||
|
|
||||||
|
templates_path = ['_templates']
|
||||||
|
source_suffix = '.md'
|
||||||
|
source_parsers = { '.md': CommonMarkParser }
|
||||||
|
master_doc = 'index'
|
||||||
|
project = u'sphinxproj'
|
||||||
|
copyright = u'2015, rtfd'
|
||||||
|
author = u'rtfd'
|
||||||
|
version = '0.1'
|
||||||
|
release = '0.1'
|
||||||
|
highlight_language = 'python'
|
||||||
|
language = None
|
||||||
|
exclude_patterns = ['_build']
|
||||||
|
pygments_style = 'sphinx'
|
||||||
|
todo_include_todos = False
|
||||||
|
html_theme = 'alabaster'
|
||||||
|
html_static_path = ['_static']
|
||||||
|
htmlhelp_basename = 'sphinxproj'
|
1
tests/sphinx_nested_header_block/index.md
Normal file
1
tests/sphinx_nested_header_block/index.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
> # Header
|
|
@ -47,6 +47,15 @@ class IndentedCodeTests(SphinxIntegrationTests):
|
||||||
'<div class="highlight">'
|
'<div class="highlight">'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
class NestedHeaderBlock(SphinxIntegrationTests):
|
||||||
|
|
||||||
|
def test_integration(self):
|
||||||
|
self._run_test(
|
||||||
|
'sphinx_nested_header_block',
|
||||||
|
'_build/text/index.html',
|
||||||
|
'<h1>'
|
||||||
|
)
|
||||||
|
|
||||||
class CustomExtensionTests(SphinxIntegrationTests):
|
class CustomExtensionTests(SphinxIntegrationTests):
|
||||||
|
|
||||||
def test_integration(self):
|
def test_integration(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue