Giter Site home page Giter Site logo

gatsby-plugin-mdx-prismjs's Introduction

NOT WORKING YET - THIS IS ABANDONED FOR NOW I MAY PICK IT UP AGAIN IN FUTURE

gatsby-plugin-mdx-prismjs

a fork of https://github.com/nhducit/gatsby-plugin-mdx and @reach/router's docs. adds prismjs to your mdx.

Installation

yarn add gatsby-plugin-mdx-prismjs

then

yarn add @mdx-js/mdx @mdx-js/loader loader-utils --dev

In your gatsby-config.js

  plugins: ['gatsby-plugin-mdx-prismjs'],

Usage

Check mdx document for syntax and examples: https://github.com/mdx-js/mdx#mdx-syntax

Example

Check examples folder for working examples

Basic:

gatsby-plugin-mdx-prismjs's People

Contributors

chrisdrackett avatar fusepilot avatar m-allanson avatar nhducit avatar slorber avatar swyxio avatar tsiq-swyx avatar

Watchers

 avatar  avatar  avatar

Forkers

zqang

gatsby-plugin-mdx-prismjs's Issues

Mind unpublishing this?

The npm published version of this doesn't work, took me a bit to realize that it was never implemented

It would save people some time finding your README :)

Could you check readme.md?

In readme.md,
src/pages/my-markdown-page.md

import React from 'react'
import RadarChart from './RadarChart'
import PolarChart from './PolarChart'
export default class MyComponent extends React.Component {
  render() {
    return (
      <div>
        <RadarChart />
        <PolarChart />
      </div>
    )
  }
}

But the actual code in your source is

import MyComponent from '../components/MyComponent'

# Markdown content

these are markdown text

## React Components:

<MyComponent />

```js
function test() {
  return <MyComponent />
}

slkdjs

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.