johackim / gatsby-remark-obsidian

Gatsby plugin to support Obsidian markdown syntax
GNU General Public License v3.0
31 stars 10 forks source link
digital-garden gatsby gatsby-plugin markdown obsidian remark

gatsby-remark-obsidian

Version License Code Climate

Gatsby plugin to support Obsidian markdown syntax.

NOTE: I also created a non-gatsby plugin (remark-obsidian) if you want 🙂.

Requirements

Features

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
                    },
                },
            ]
        }
    },
],

Examples

Running the tests

npm test

Support me

I'd love to work on this project, but my time on this earth is limited, support my work to give me more time!

Please support me with a one-time or a monthly donation and help me continue my activities.

Github sponsor ko-fi Buy me a coffee liberapay Github Mastodon Twitter

License

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

Free Software, Hell Yeah!