hexo-prism-plugin icon indicating copy to clipboard operation
hexo-prism-plugin copied to clipboard

hexo版本为5.2.0的时候,花括号显示为字符串‘{’和‘&#125’

Open yuang01 opened this issue 4 years ago • 2 comments

yuang01 avatar Dec 03 '20 06:12 yuang01

I got same problems. I just go to index.js to do some fix like below:

const map = {
  ''': '\'',
  '&': '&',
  '>': '>',
  '&lt;': '<',
  '&quot;': '"',
  '&#123;': '{',
  '&#125;': '}'
};

Then it works.

sdwh avatar Dec 06 '20 01:12 sdwh

I got same problems. I just go to index.js to do some fix like below:

const map = {
  '&#39;': '\'',
  '&amp;': '&',
  '&gt;': '>',
  '&lt;': '<',
  '&quot;': '"',
  '&#123;': '{',
  '&#125;': '}'
};

Then it works.

PR will be welcomed.

ryanzhouff avatar Mar 05 '21 17:03 ryanzhouff