https://github.com/johackim/gatsby-remark-obsidian
Gatsby plugin to support Obsidian markdown syntax
https://github.com/johackim/gatsby-remark-obsidian
digital-garden gatsby gatsby-plugin markdown obsidian remark
Last synced: 2 months ago
JSON representation
Gatsby plugin to support Obsidian markdown syntax
- Host: GitHub
- URL: https://github.com/johackim/gatsby-remark-obsidian
- Owner: johackim
- License: gpl-3.0
- Created: 2021-05-06T16:12:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-22T09:06:43.000Z (over 2 years ago)
- Last Synced: 2024-09-29T00:05:55.685Z (7 months ago)
- Topics: digital-garden, gatsby, gatsby-plugin, markdown, obsidian, remark
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 30
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- project-awesome - johackim/gatsby-remark-obsidian - Gatsby plugin to support Obsidian markdown syntax (JavaScript)
README
# gatsby-remark-obsidian
[](https://github.com/johackim/gatsby-remark-obsidian/releases)
[](https://raw.githubusercontent.com/johackim/gatsby-remark-obsidian/master/LICENSE)
[](https://codeclimate.com/github/johackim/gatsby-remark-obsidian)Gatsby plugin to support Obsidian markdown syntax.
NOTE: I also created a [non-gatsby plugin (remark-obsidian)](https://github.com/johackim/remark-obsidian) if you want 🙂.
## 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
```bash
npm install gatsby-remark-obsidian
```## Usage
Add the plugin to your Gatsby config:
```js
// 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
- [Example with remark](https://github.com/johackim/gatsby-remark-obsidian/tree/master/examples/remark)
- [Example with mdx](https://github.com/johackim/gatsby-remark-obsidian/tree/master/examples/mdx)## Running the tests
```bash
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.
[](https://github.com/sponsors/johackim/)
[](https://ko-fi.com/johackim)
[](https://www.buymeacoffee.com/johackim)
[](https://liberapay.com/johackim/donate)
[](https://github.com/johackim)
[](https://mastodon.ethibox.fr/@johackim)
[](https://twitter.com/_johackim)## License
This project is licensed under the GNU GPL v3.0 - see the [LICENSE](https://raw.githubusercontent.com/johackim/gatsby-remark-obsidian/master/LICENSE) file for details
**Free Software, Hell Yeah!**