-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Show Gist In Markdown #982
Comments
can you share a reproducible repo. |
like this: https://gist.github.com/haozibi/3a7a87ec010374c4ad5b926bd695fca9 <script src="https://gist.github.com/haozibi/3a7a87ec010374c4ad5b926bd695fca9.js"></script> |
Not the gist , a repo would have been better. |
Maybe u can look https://github.com/haozibi/t-docsify step 👇 $ git clone git@github.com:haozibi/t-docsify.git
$ cd t-docsify
$ docsify init docs
Initialization succeeded! Please run docsify serve docs
# insert gist
$ docsify serve docs
Serving /Users/bi/Desktop/t-docsify/docs now.
Listening at http://localhost:49635 |
You need to enable this |
same problem, but console log is different. u can look haozibi/t-docsify@6fa6dfb |
Thanks , I will take a look soon. |
In my opinion.u can't include the "Gist js "directly. document.write('<link rel="stylesheet"... We can't use the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I could not get the gist embed script tag to work on Docsify... But using Docify's embed approach and a raw URL, this works great to embed a gist. For example, I found how to pull in and render markdown content. [run_docsify_locally.md](//gist.githubusercontent.com/MichaelCurrin/4c8060dcc9d8841f842eeebc7a1436d8/raw/run_docsify_locally.md ':include') I use that here: https://michaelcurrin.github.io/docsify-js-tutorial/#/?id=_1-install Corresponding markdown here Also, I wrote a short tutorial on this here: gist. |
I'm happy to add to the Docsify embed doc with a short explanation on how to embed a gist like this, as an alternative to script tag. |
feel free to submit a PR |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sorry this was at the back of my mind. I'll still do the PR discussed above for the enable scripts approach and my alt approach |
I'll get it in today |
Added! 🎉 📝 |
Bug Report
hello,I have a problem. I write gist embed link in markdown,but docsify don't show it.
I want to know how to show gist in docsify
Steps to reproduce
What is current behaviour
Chrome console show
I am not very good at the FrontEnd, so I am confused about the problem. sorry~~
What is the expected behaviour
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: Mac OS 10.13.6
Node.js version:
npm/yarn version:
Browser version: 79.0.3945.79(64 Bit)
Docsify version:
Docsify plugins:
The text was updated successfully, but these errors were encountered: