fix: allow also " inside of an embed by luwol03 · Pull Request #1598 · docsifyjs/docsify

Summary

I fixed a bug where ":include" is not handled like ':include'. This is not working because the type of quotes are not supported. The default prettier configuration changes the '' to "". And if you have auto format toggled on, you're not be able to save the file with the right quotes.

What kind of change does this PR introduce?

I added added the " also the the replace regex

str = str
      .replace(/^('|")/, '')
      .replace(/('|")$/, '')

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added (I cant find some tests for that already.)

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

closes #1597
closes #1587
closes #1555
closes #1005

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE