Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docsify not working in IE 11 #1420

Closed
Ajaysankaran opened this issue Nov 9, 2020 · 7 comments
Closed

Docsify not working in IE 11 #1420

Ajaysankaran opened this issue Nov 9, 2020 · 7 comments
Labels

Comments

@Ajaysankaran
Copy link

Whenever i try to load docsify url in IE, i am getting an error, " Object doesn't support property or method 'repeat' "

Details:

  • OS: Windows 11
  • Node.js version: 10
  • npm/yarn version: 6
  • Browser version: IE 11
  • Docsify version: 4.4.1

Is there any other configuration i need to do?

@Ajaysankaran Ajaysankaran changed the title Docsify not working in IE Docsify not working in IE 11 Nov 9, 2020
@sy-records
Copy link
Member

Can you provide more detailed information?
Try again with the latest released version?

@Ajaysankaran
Copy link
Author

It is resolved now. I had to keep a polyfil in index.html to make it work.
I have one more query. How do i get specific content from the pages? i am trying to create a plugin that will convert the text to speech in docsify. Here i want to get a specific content from the md file

@sy-records
Copy link
Member

sy-records commented Nov 10, 2020

https://docsify.js.org/#/write-a-plugin

     hook.beforeEach(function(content) {
        // Invoked each time before parsing the Markdown file.
        // ...
        return content;
      });

content is the content of each MarkDown file, you can do what you want with it.

@Ajaysankaran
Copy link
Author

I have tried this and this will get executed on load. What i wanted is to provide a button. On click of that, i would like to get the specific content and start the text to speech conversion.Is something like this possible in Docsify?

@sy-records
Copy link
Member

You can try to manipulate the DOM

https://raw.githubusercontent.com/docsifyjs/docsify/develop/docs/themes.md

@georgeOsdDev
Copy link

@sy-records
Object doesn't support property or method 'repeat' is raised from marked.
markedjs/marked#1771

v4.11.4 work with IE11 but latest(v4.11.6) release does not work with IE11 due to this error.
Docsify v4.11.4 use "marked": "^0.7.0", https://github.com/docsifyjs/docsify/blob/v4.11.4/package.json#L61
Docsify v4.11.6 use "marked": "^1.1.1", https://github.com/docsifyjs/docsify/blob/v4.11.6/package.json#L60

Please release new stable version with #1425

@sy-records
Copy link
Member

Thank you for your feedback, we will release it as soon as possible. @georgeOsdDev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants