瀏覽代碼

fix(flavor: github): new version of github does not use prefix 'user-content' in headers

New version of GFM does not add a 'user-content-' before generated header ids.
This matches the new spec.
Estevao Soares dos Santos 8 年之前
父節點
當前提交
368f0b6309
共有 5 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      dist/showdown.js
  2. 0 0
      dist/showdown.js.map
  3. 0 0
      dist/showdown.min.js
  4. 0 0
      dist/showdown.min.js.map
  5. 0 1
      src/showdown.js

+ 0 - 1
dist/showdown.js

@@ -156,7 +156,6 @@ var showdown = {},
     flavor = {
     flavor = {
       github: {
       github: {
         omitExtraWLInCodeBlocks:              true,
         omitExtraWLInCodeBlocks:              true,
-        prefixHeaderId:                       'user-content-',
         simplifiedAutoLink:                   true,
         simplifiedAutoLink:                   true,
         excludeTrailingPunctuationFromURLs:   true,
         excludeTrailingPunctuationFromURLs:   true,
         literalMidWordUnderscores:            true,
         literalMidWordUnderscores:            true,

文件差異過大導致無法顯示
+ 0 - 0
dist/showdown.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/showdown.min.js


文件差異過大導致無法顯示
+ 0 - 0
dist/showdown.min.js.map


+ 0 - 1
src/showdown.js

@@ -11,7 +11,6 @@ var showdown = {},
     flavor = {
     flavor = {
       github: {
       github: {
         omitExtraWLInCodeBlocks:              true,
         omitExtraWLInCodeBlocks:              true,
-        prefixHeaderId:                       'user-content-',
         simplifiedAutoLink:                   true,
         simplifiedAutoLink:                   true,
         excludeTrailingPunctuationFromURLs:   true,
         excludeTrailingPunctuationFromURLs:   true,
         literalMidWordUnderscores:            true,
         literalMidWordUnderscores:            true,

部分文件因文件數量過多而無法顯示