629cd94469
it's no longer needed and if anything impedes further development of the tooling by its sheer undecipherability of reasoning alone. users of the docbook renderers can still pull nrd from 23.11 to get this support for the foreseeable future, but with everything we can remember having moved away from docbook-like toolchains already that seems unlikely to happen.
15 lines
554 B
Python
15 lines
554 B
Python
import nixos_render_docs
|
|
|
|
from markdown_it.token import Token
|
|
import pytest
|
|
|
|
def test_option_headings() -> None:
|
|
c = nixos_render_docs.options.HTMLConverter({}, 'local', 'vars', 'opt-', {})
|
|
with pytest.raises(RuntimeError) as exc:
|
|
c._render("# foo")
|
|
assert exc.value.args[0] == 'md token not supported in options doc'
|
|
assert exc.value.args[1] == Token(
|
|
type='heading_open', tag='h1', nesting=1, attrs={}, map=[0, 1], level=0, children=None,
|
|
content='', markup='#', info='', meta={}, block=True, hidden=False
|
|
)
|