#4 Highlighted code weirdness

오픈
solsticedhiver2 년 전을 오픈 · 0개의 코멘트
solsTiCe d'Hiver 코멘트됨, 2 년 전

Though I am not against syntax highlighting in code "fence" section, it is weird as of now.

Looking at the md-cheatsheet/README.md in source directory, one can see a few oddities

  • Markdown in code section got highlighted randomly; part of heading is green, part of link is blue.

  • When it is simple text, like in GPL at the end of the file, only words are highlighted like 'in' , 'the', 'or'.

I don't know if it comes from libhighlight, but why not disable syntax highliting in code section, unless a specific syntax is requested (like c, or python or whatever)by specifying the syntax wanted at the start of the fence section.

Or, have some heuristics guess the type of the code, to apply the good syntax highlighting. But that's some work, unless this exists somewhere as a lib...

Edit: I tried disabling manually syntax highlighting by using a tip found online, it does not work.

I tried:

```text
Disable syntax hightlighting here by using "text" syntax highlight
```

aah this does not work here either (see text is red)

Though I am not against *syntax highlighting* in **code "fence" section**, it is weird as of now. Looking at the `md-cheatsheet/README.md` in source directory, one can see a few *oddities* * Markdown in code section got highlighted randomly; part of heading is green, part of link is blue. * When it is simple text, like in GPL at the end of the file, only words are highlighted like 'in' , 'the', 'or'. I don't know if it comes from *libhighlight*, but why not disable syntax highliting in code section, unless a specific syntax is requested (like c, or python or whatever)by specifying the syntax wanted at the start of the fence section. Or, have some *heuristics* guess the type of the code, to apply the good syntax highlighting. But that's some work, unless this exists somewhere as a lib... Edit: I tried disabling manually syntax highlighting by using a tip found online, it does not work. I tried: ```text Disable syntax hightlighting here by using "text" syntax highlight ``` aah this does not work here either (see text is red)
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.