[x] I searched issues and couldn’t find anything (or linked relevant results below)
[x] If applicable, I’ve added docs and tests
Description of changes
This adds a test (and an example in the README) to confirm that the type property of <script type="module">...</script> is preserved by rehype-remove-script-type-javascript. When reading through the README for this package, my immediate concern was that inline module scripts would be converted to regular scripts, so hopefully this change will assuage that concern for future visitors. Also, the test makes sure there won’t be a regression here.
Initial checklist
Description of changes
This adds a test (and an example in the README) to confirm that the
type
property of<script type="module">...</script>
is preserved byrehype-remove-script-type-javascript
. When reading through the README for this package, my immediate concern was that inline module scripts would be converted to regular scripts, so hopefully this change will assuage that concern for future visitors. Also, the test makes sure there won’t be a regression here.