Process conditional groups in mapDoc (#10695)
This commit is contained in:
1 parent
147c30f7fb
commit
ae176f2e79
4 files changed
+153
-15
No files matched your search
@@ -167,6 +167,67 @@ setFoo(
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-10691.js - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
|
||||
====================================options=====================================
|
||||
htmlWhitespaceSensitivity: "ignore"
|
||||
parsers: ["babel", "flow", "typescript"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
export default function include_photoswipe(
|
||||
gallery_selector = ".my-gallery"
|
||||
) {
|
||||
return /* HTML */ \`
|
||||
<script>
|
||||
window.addEventListener("load", () =>
|
||||
initPhotoSwipeFromDOM("\${gallery_selector}")
|
||||
);
|
||||
</script>\`;
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
export default function include_photoswipe(gallery_selector = ".my-gallery") {
|
||||
return /* HTML */ \`
|
||||
<script>
|
||||
window.addEventListener("load", () =>
|
||||
initPhotoSwipeFromDOM("\${gallery_selector}")
|
||||
);
|
||||
</script>
|
||||
\`;
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`issue-10691.js format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["babel", "flow", "typescript"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
export default function include_photoswipe(
|
||||
gallery_selector = ".my-gallery"
|
||||
) {
|
||||
return /* HTML */ \`
|
||||
<script>
|
||||
window.addEventListener("load", () =>
|
||||
initPhotoSwipeFromDOM("\${gallery_selector}")
|
||||
);
|
||||
</script>\`;
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
export default function include_photoswipe(gallery_selector = ".my-gallery") {
|
||||
return /* HTML */ \` <script>
|
||||
window.addEventListener("load", () =>
|
||||
initPhotoSwipeFromDOM("\${gallery_selector}")
|
||||
);
|
||||
</script>\`;
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`lit-html.js - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
|
||||
====================================options=====================================
|
||||
htmlWhitespaceSensitivity: "ignore"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
export default function include_photoswipe(
|
||||
gallery_selector = ".my-gallery"
|
||||
) {
|
||||
return /* HTML */ `
|
||||
<script>
|
||||
window.addEventListener("load", () =>
|
||||
initPhotoSwipeFromDOM("${gallery_selector}")
|
||||
);
|
||||
</script>`;
|
||||
}
|
||||
Reference in new issue
Block a user