highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

fixed css escape chars

Open Dxuian opened this issue 1 year ago • 11 comments

Resolves #3965 (fixed the branch issue) before image

after image

Checklist

  • [x] Added markup tests, or they don't apply here because...
  • [x] Updated the changelog at CHANGES.md

Dxuian avatar Aug 30 '24 01:08 Dxuian

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +68 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB +1 B
es/highlight.min.js 8.18 KB 8.18 KB +1 B
es/languages/css.min.js 4.34 KB 4.38 KB +32 B
highlight.min.js 8.22 KB 8.22 KB +2 B
languages/css.min.js 4.35 KB 4.38 KB +32 B

github-actions[bot] avatar Aug 30 '24 01:08 github-actions[bot]

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +56 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB -3 B
es/highlight.min.js 8.18 KB 8.18 KB -3 B
es/languages/css.min.js 4.34 KB 4.38 KB +32 B
highlight.min.js 8.22 KB 8.22 KB -2 B
languages/css.min.js 4.35 KB 4.38 KB +32 B

github-actions[bot] avatar Sep 04 '24 13:09 github-actions[bot]

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +67 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB +1 B
es/highlight.min.js 8.18 KB 8.18 KB +1 B
es/languages/css.min.js 4.34 KB 4.38 KB +32 B
highlight.min.js 8.22 KB 8.22 KB +1 B
languages/css.min.js 4.35 KB 4.38 KB +32 B

github-actions[bot] avatar Sep 04 '24 13:09 github-actions[bot]

@joshgoebel any input ?

Dxuian avatar Sep 09 '24 07:09 Dxuian

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +130 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB +1 B
es/highlight.min.js 8.18 KB 8.18 KB +1 B
es/languages/css.min.js 4.34 KB 4.41 KB +63 B
highlight.min.js 8.22 KB 8.22 KB +2 B
languages/css.min.js 4.35 KB 4.41 KB +63 B

github-actions[bot] avatar Sep 11 '24 09:09 github-actions[bot]

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change +113 B

View Changes
file base pr diff
es/languages/css.min.js 4.34 KB 4.4 KB +56 B
highlight.min.js 8.22 KB 8.22 KB +1 B
languages/css.min.js 4.35 KB 4.41 KB +56 B

github-actions[bot] avatar Sep 11 '24 09:09 github-actions[bot]

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

2 files changed

Total change +112 B

View Changes
file base pr diff
es/languages/css.min.js 4.34 KB 4.4 KB +56 B
languages/css.min.js 4.35 KB 4.41 KB +56 B

github-actions[bot] avatar Sep 22 '24 15:09 github-actions[bot]

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +75 B

View Changes
file base pr diff
es/core.min.js 8.18 KB 8.18 KB -1 B
es/highlight.min.js 8.18 KB 8.18 KB -1 B
es/languages/css.min.js 4.34 KB 4.38 KB +38 B
highlight.min.js 8.22 KB 8.22 KB +1 B
languages/css.min.js 4.35 KB 4.39 KB +38 B

github-actions[bot] avatar Sep 22 '24 16:09 github-actions[bot]

@joshgoebel ?

Dxuian avatar Oct 13 '24 13:10 Dxuian

Sorry for the delay. While coming back to this I just remembered that we support many CSS-like grammars - and many of those allow plain old CSS as well as their other syntactic improvements.

SO... to accept a css improvement you would also need to support:

  • less
  • stylus
  • scss

There is a script to help with this.

  • You'd first need to add a small representative sample set of escapes to markup/css/css_consistency.txt...
    • with a paired result file...
  • then use the tools/css script -
    • which will copy the consistency test (as-is) into the less, stylus, and scss folders.

After that you need to work with the less, stylus, and scss grammars to get the markup tests passing - ie their on CSS output must exactly match the output of the CSS grammar.

joshgoebel avatar Oct 31 '24 22:10 joshgoebel

Also perhaps look at the css_shared.js file, which might be useful for shared regex, etc.

joshgoebel avatar Oct 31 '24 22:10 joshgoebel