docsify-edit-on-github icon indicating copy to clipboard operation
docsify-edit-on-github copied to clipboard

Possible to add emoji in front of Edit link?

Open paulhibbitts opened this issue 5 years ago • 4 comments

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:

2020-03-05_11-02-18

But I am trying to get something more like this (https://posthtml.org/#/?id=posthtml):

2020-03-05_11-06-06

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

paulhibbitts avatar Mar 05 '20 19:03 paulhibbitts

The plugin source code is very simple you can add an icon by editing the code. I consider this question as a feature request.

njleonzhang avatar Mar 06 '20 02:03 njleonzhang

Thank you very much for considering this request🙂

paulhibbitts avatar Mar 06 '20 14:03 paulhibbitts

@paulhibbitts Have you tried putting the emoji itself into your index.html file? Just make sure you have a <meta charset="UTF-8"> tag.

brandones avatar Oct 14 '21 21:10 brandones

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

paulhibbitts avatar Oct 14 '21 22:10 paulhibbitts