atom / markdown-preview

šŸ“ Markdown preview in Atom
MIT License
1.23k stars 357 forks source link

Syntax highlighting does not work in preview for 'scala' or 'Scala' #603

Open KlemensKoestler opened 2 years ago

KlemensKoestler commented 2 years ago

Prerequisites

Description

Syntax highlighting does not work in preview for 'scala' or 'Scala'

Steps to Reproduce

  1. Use codeblock with scala syntax highlighting.

      def example = 2      // evaluated when called
      val example = 2      // evaluated immediately
      lazy val example = 2 // evaluated once when needed
    
      def square(x: Double)    // call by value
      def square(x: => Double) // call by name
  2. Go to preview (Ctrl+Shift+M)

Expected behavior: Expected syntax within codeblock to be highlighted in preview mode.

Actual behavior: Syntax is not highlighted within codeblock.

Reproduces how often:

Problem occurs 100% of the time.

Versions

atom-version Atom : 1.60.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1

apm--version apm 2.6.2 npm 6.14.13 node 12.14.1 x64 atom 1.60.0 python git 2.35.1.windows.2

OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.19042 N/A Build 19042

Additional Information