docsify-edit-on-github
docsify-edit-on-github copied to clipboard
Possible to add emoji in front of Edit link?
Hello,
Thank you so much for this awesome Plugin! I have just recently discovered Docsify (along with your Plugin) and am really liking everything so far.
I was wondering if it is possible to add an emoji in front of the Edit link? I've installed the emoji Plugin and have the following in my index.html file:
plugins: [
EditOnGithubPlugin.create(
'https://github.com/paulhibbitts/Docsify/tree/master/docs/',undefined,':memo: Edit this Page on GitHub'
)
]
However, I get this result:
But I am trying to get something more like this (https://posthtml.org/#/?id=posthtml):
It would be great to either use an emoji, or if that is not possible, a font awesome icon with the Edit on GitHub Plugin.
Thanks very much, Paul
The plugin source code is very simple you can add an icon by editing the code. I consider this question as a feature request.
Thank you very much for considering this request🙂
@paulhibbitts Have you tried putting the emoji itself into your index.html file? Just make sure you have a <meta charset="UTF-8"> tag.
Thanks for the follow-up @brandones , I ended up adding the needed script directly into my index.html file: https://github.com/hibbitts-design/docsify-open-course-starter-kit/blob/main/docs/index.html#L144-L151