Giter Site home page Giter Site logo

syntax-tree / mdast-util-mdx-expression Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 0.0 140 KB

mdast extension to parse and serialize MDX or MDX.js expressions

Home Page: https://unifiedjs.com

License: MIT License

JavaScript 100.00%
mdast mdast-util es js expression mdx mdxjs

mdast-util-mdx-expression's Issues

Expressions are indented weirdly

Initial checklist

Affected packages and versions

latest

Link to runnable example

No response

Steps to reproduce

Reformat:

 {
   (() => {
-    const advanced = props.navTree.children.find((item) => item.name === '/guides/')
+  const advanced = props.navTree.children.find((item) => item.name === '/guides/')
 
-    return (
-      <nav>
-        <NavGroup items={advanced.children} includeDescription />
-      </nav>
-    )
+  return (
+  <nav>
+  <NavGroup items={advanced.children} includeDescription />
+  </nav>
+  )
   })()

Expected behavior

Indent should be nice

Actual behavior

Indent is horrible

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

Duplicate on line 36 in complex-types.d.ts

Initial checklist

Affected packages and versions

1.2.0

Link to runnable example

No response

Steps to reproduce

mdxFlowExpression: MdxFlowExpression

CleanShot 2022-06-03 at 17 38 18

Expected behavior

no duplicate

Actual behavior

duplicate

Runtime

Node v16

Package manager

yarn v1

OS

macOS

Build and bundle tools

Vite

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.