#40341·长链

`HTMLHeaderTextSplitter` 在初始化时对其已支持的非标题标签抛出 `ValueError`

作者: subhashpolisetti创建于 2026年9月9日更新于 2026年9月17日
标签bugtext-splittersexternal

**What I expect.** `HTMLHeaderTextSplitter` documents `headers_to_split_on` as "a list of `(header_tag, header_name)` pairs representing the headers that define splitting boundaries", with no restriction to `h1` through `h6`. Its splitting engine goes further and handles other tags deliberately, so constructing the splitter with one should work.

内容来源: langchain-ai/langchain