mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Fix detection of span and div elements without attributes.
- Fix: Better detection of <span> and <div> elements that do not have attributes.
This commit is contained in:
@ -221,6 +221,11 @@ class LinkTitlesLinkerTest extends LinkTitles\TestCase {
|
||||
"With parseHeadings = true,\n== a heading with link target in it ==\n should be linked",
|
||||
"With parseHeadings = true,\n== a heading with [[link target]] in it ==\n should be linked",
|
||||
],
|
||||
[
|
||||
true, // parseHeadings
|
||||
"With parseHeadings = true,\n== <span>a heading with link target in ity/span> ==\n should be linked",
|
||||
"With parseHeadings = true,\n== <span>a heading with [[link target]] in ity/span> ==\n should be linked",
|
||||
],
|
||||
[
|
||||
false, // parseHeadings
|
||||
"With parseHeadings = false,\n== a heading with link target in it ==\n should not be linked",
|
||||
|
Reference in New Issue
Block a user