valentinnodan / mdx-intellij-plugin

MIT License
8 stars 2 forks source link

Support mdx2 JavaScript expressions #23

Open vladsholokhov opened 2 years ago

vladsholokhov commented 2 years ago

https://mdxjs.com/blog/v2/#improvements-to-the-mdx-format

export const authors = [
  {name: 'Jane', email: 'hi@jane.com'},
  {name: 'John', twitter: '@john2002'}
]
export const published = new Date('2021-11-01')

Written by: {new Intl.ListFormat('en').format(authors.map(d => d.name))}.

Published on: {new Intl.DateTimeFormat('en', {dateStyle: 'long'}).format(published)}.

image

No highlighting in WebStorm: image

WebStorm 2021.3.1
Build #WS-213.6360, built on December 8, 2021
Licensed to JetBrains Team / Vladislav Sholokhov
You have a perpetual fallback license for this version.
Subscription is active until March 30, 2023.
Runtime version: 11.0.13+7-b1751.21 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-91-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 750M
Cores: 8
Non-Bundled Plugins:
    org.intellij.plugins.postcss (213.5744.190)
    mdx.js (1.0.213)
    deno (213.5744.190)
    Dart (213.5744.122)

Current Desktop: ubuntu:GNOME