Last modified: 2014-06-24 21:07:40 UTC
Right now they're not, which is irritating when I'm writing about how VE supports the functionality. :-)
See https://en.wikipedia.org/w/index.php?title=User%3ASsastry%2FVE_Test&diff=613314757&oldid=584723202 and also this: [subbu@earth lib] echo "This is a test of __DISAMBIG__ getting nowikied" | node parse --html2wt This is a test of <nowiki>__DISAMBIG__</nowiki> getting nowikied
See e.g. https://www.mediawiki.org/w/index.php?title=VisualEditor/status&diff=prev&oldid=1034135 for an insertion without <nowiki>s, or https://www.mediawiki.org/w/index.php?title=VisualEditor:Bug_66514&oldid=1039124 for a more minimal test. The problem appears to be that <code>__Foo__</code> stops __Foo__ being recognised.
[subbu@earth lib] echo "<b>__TOC__</b>" | node parse --html2wt '''__TOC__''' [subbu@earth lib] echo "<foobar>__DISAMBIG__</foobar>" | node parse --html2wt <foobar>__DISAMBIG__</foobar>
[subbu@earth lib] echo "Fails when not in <b>sol context</b> __TOC__" | node parse --html2wt --trace wt-escape [wt-esc] | EWT: "Fails when not in " [wt-esc] | ---No-checks needed--- [wt-esc] | EWT: "sol context" [wt-esc] | ---No-checks needed--- [wt-esc] | EWT: " __TOC__" [wt-esc] | SOL: false " __TOC__" [wt-esc] | ---Not-SOL and safe--- Fails when not in '''sol context''' __TOC__ [subbu@earth lib] echo "Works when node is in sol context __TOC__" | node parse --html2wt --trace wt-escape [wt-esc] | EWT: "Works when node is in sol context __TOC__" [wt-esc] | SOL: true "Works when node is in sol context __TOC__" [wt-esc] | nl: true :text= "Works when node is in sol context __TOC__" [wt-esc] | T: "Works when node is in sol context " [wt-esc] | T: {"type":"SelfclosingTagTk","name":"behavior-switch","attribs":[{"k":"word","v":"__TOC__"}],"dataAttribs":{"tsr":[34,41],"src":"__TOC__"}} [wt-esc] | ---Found WT tokens--- Works when node is in sol context <nowiki>__TOC__</nowiki>
Change 140194 had a related patch set uploaded by Subramanya Sastry: (Bug 66514) Fix bug in nowiki-escaping of magic words https://gerrit.wikimedia.org/r/140194
Change 140194 merged by jenkins-bot: (Bug 66514) Fix bug in nowiki-escaping of magic words https://gerrit.wikimedia.org/r/140194