Skip to content

Instantly share code, notes, and snippets.

@bashkirtsevich
Created November 28, 2018 07:04
Show Gist options
  • Select an option

  • Save bashkirtsevich/80fc471466ea8e34171c2b1a9fc7873e to your computer and use it in GitHub Desktop.

Select an option

Save bashkirtsevich/80fc471466ea8e34171c2b1a9fc7873e to your computer and use it in GitHub Desktop.
Docsify url fix

After day long suffer with javascript I was found completely easy solution. I just make local copy of docsify.min.js with this patch:

var o=U(i.id||r).split('(').shift().toLowerCase().replace(/[^а-яa-z_]/g,'-').replace(/^-+|-+$/g,'')

Location (find by this part of code):

a.ignoreAllSubs=!0);var o=U(i.id||r),s=u.toURL(

I think this patch more comfortable instead worst plugins with half-working results.

Reason: Cyrillic paragraph links compatibility with GitLab markdown engine (this engine is worst too).

May be this solution will helpful for someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment