Giter Site home page Giter Site logo

ice-zjchen / remark-codeset Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 754 KB

Transform sets of code blocks in markdown to tablist in html (new node type, rehype compatible)

License: MIT License

JavaScript 100.00%
remark-plugin gatsby-remark remark rehype markdown codeset tablist

remark-codeset's Introduction

remark-codeset

Adds syntax to parse sets of code blocks in markdown. Transforms them to tablist.

Live demo: https://codepen.io/ice-zjchen/full/dybevYP

Intro

This repository contains the following projects:

Syntax

~~~codeset
```html
<div>Hello CodeSet</div>
```

```css
div {
  font-size: 32px;
}
```

```js
console.log('I am remark-codeset');
```
~~~

remark-codeset's People

Contributors

dependabot[bot] avatar ice-zjchen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

remark-codeset's Issues

Tabs not getting displayed when clicked

I'm using the gatsby-remark-codeset plugin and I'm trying to troubleshoot a situation where the 1st tab is displayed correctly but any other tab doesn't get displayed when clicking on them.

My gatsby-config.js looks like this:
plugins: [ 'gatsby-plugin-react-helmet', 'gatsby-plugin-styled-components', { resolve: 'gatsby-transformer-remark', options: { plugins: [ 'gatsby-remark-codeset', 'gatsby-remark-autolink-headers', { resolve: 'gatsby-remark-prismjs', options: { classPrefix: 'language-', }, }, ...

My Markdown file looks like this:

`

```java
    ...
```

```javascript
    ...
```

`

Any ideas here are appreciated.

Thanks

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.