gatsby-remark-obsidian

0.5.0 • Public • Published

gatsby-remark-obsidian

Version License Code Climate

Gatsby plugin to support Obsidian markdown syntax.

Requirements

  • Nodejs >= 14

Features

  • [x] Support ==highlight text==
  • [x] Support [[Internal link]]
  • [x] Support [[Internal link|With custom text]]
  • [x] Support [[Internal link#heading]]
  • [x] Support [[Internal link#heading|With custom text]]
  • [x] Support ![[Embed note]]
  • [ ] Support ![[Embed note#heading]]

Installation

npm install gatsby-remark-obsidian

Usage

Add the plugin to your Gatsby config:

// gatsby-config.js
plugins: [
    {
        resolve: "gatsby-transformer-remark",
        options: {
            plugins: [
                {
                    resolve: 'gatsby-remark-obsidian',
                    options: {
                        titleToURL: (title) => `/${title}`, // optional
                        markdownFolder: `${__dirname}/content`, // optional
                        highlightClassName: 'highlight', // optional
                    },
                },
            ]
        }
    },
],

Running the tests

npm test

License

This project is licensed under the GNU GPL v3.0 - see the LICENSE file for details

Free Software, Hell Yeah!

Package Sidebar

Install

npm i gatsby-remark-obsidian

Weekly Downloads

40

Version

0.5.0

License

GPL-3.0

Unpacked Size

49 kB

Total Files

10

Last publish

Collaborators

  • johackim