diff options
author | C. Scott Ananian <cscott@cscott.net> | 2025-04-04 23:12:24 -0400 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2025-04-04 23:12:44 -0400 |
commit | 2ea61f9aa47399544c308ca95b3941b20d26e74c (patch) | |
tree | 9de8f8d1d0560b1f79d0611fcbed8fba4047c4b2 /tests/parser/pWrapping.txt | |
parent | 646a3f381883aeb685ccee19fbc94abd8aad7f47 (diff) | |
download | mediawikicore-2ea61f9aa47399544c308ca95b3941b20d26e74c.tar.gz mediawikicore-2ea61f9aa47399544c308ca95b3941b20d26e74c.zip |
Sync up core repo with Parsoid
This now aligns with Parsoid commit 0965c908f046d659aab16b4023cc8de9ded1fce7
Change-Id: Ic007c7b4a893329de8499a88bb0edcb4b04d0905
Diffstat (limited to 'tests/parser/pWrapping.txt')
-rw-r--r-- | tests/parser/pWrapping.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/parser/pWrapping.txt b/tests/parser/pWrapping.txt index 95824fe66535..dd7956eae35c 100644 --- a/tests/parser/pWrapping.txt +++ b/tests/parser/pWrapping.txt @@ -394,3 +394,13 @@ it's off to work we go <p>it's off to work we go</p> !! end + +!! test +Extlink on a line with a block gets wrapped +!! wikitext +[https://google.com {{1x|foo}}] bar <div>foo</div> +!! html/php +<p><a rel="nofollow" class="external text" href="https://google.com">foo</a> bar </p><div>foo</div> +!! html/parsoid +<p><a rel="mw:ExtLink nofollow" href="https://google.com" class="external text"><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</span></a> bar </p><div data-parsoid='{"stx":"html"}'>foo</div> +!! end |