Skip to content

lambda-town/mdx-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mdx Parser

Start the server

yarn start

The default port is 4545

Parse a complete MDX File

POST /

With MDX Contents as body

Retrieve only MDX blocks with specific names

POST /elements

With MDX Contents as body and the names query parameter specifying with elements to include in the response, e.g.

curl --request POST \
  --url 'http://localhost:4545/elements?names=Question&names=ScalaCode' \
  --data 'You MDX File'

This will return something like this

[
  {
    "type": "mdxBlockElement",
    "name": "ScalaCode",
    "attributes": [
      {
        "type": "mdxAttribute",
        "name": "id",
        "value": "hello-world-1"
      }
    ]
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published