Skip to content

Commit cab5211

Browse files
Mpdreamzreakaleek
andauthored
Add rust back as supported language (#965)
* Add rust back as supported language * Update src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs Co-authored-by: Jan Calanog <[email protected]> --------- Co-authored-by: Jan Calanog <[email protected]>
1 parent 0934635 commit cab5211

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Elastic.Markdown/Assets/hljs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import powershell from 'highlight.js/lib/languages/powershell'
2727
import properties from 'highlight.js/lib/languages/properties'
2828
import python from 'highlight.js/lib/languages/python'
2929
import ruby from 'highlight.js/lib/languages/ruby'
30+
import rust from 'highlight.js/lib/languages/rust'
3031
import scala from 'highlight.js/lib/languages/scala'
3132
import shell from 'highlight.js/lib/languages/shell'
3233
import sql from 'highlight.js/lib/languages/sql'
@@ -67,6 +68,7 @@ const languages: Array<{
6768
{ name: 'properties', module: properties },
6869
{ name: 'python', module: python },
6970
{ name: 'ruby', module: ruby },
71+
{ name: 'rust', module: rust },
7072
{ name: 'scala', module: scala },
7173
{ name: 'shell', module: shell, aliases: ['sh'] },
7274
{ name: 'sql', module: sql },

src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static class CodeBlock
3535
{ "properties", "" }, // Properties
3636
{ "python", "py, gyp" }, // Python
3737
{ "ruby", "rb, gemspec, podspec, thor, irb" }, // Ruby
38+
{ "rust", "rs" }, // Rust
3839
{ "scala", "" }, // Scala
3940
{ "shell", "console" }, // Shell
4041
{ "sql", "" }, // SQL

0 commit comments

Comments
 (0)