1.1.11 • Published 12 months ago

@heavycircle/remark-obsidian v1.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

remark-obsidian

A remark plugin to extend support to Obsidian-flavored Markdown.

Contents

What is this?

This package is a unified (remark) package that extends Markdown to support Obsidian flavors.

The list of Supported Obsidian Markdown items are:

SyntaxDescription
[[Link]]Internal Links
![[Link]]Embed Files
![[Link#^id]]Block References
^idDefining a Block
%%Text%%Comments
~~Text~~Strikethroughs
==Text==Highlights
``` | Code Blocks
- [ ]Incomplete Task
- [x]Completed Task
[!note]Callouts

Obsidian's website notes that not all these are fully Obsidian-specific. The main reason I wrote this plugin is for Link and Callout support.

Install

This package is ESM only. In Node.js (version 16+), install using npm:

npm install @heavycircle/remark-obsidian

Use

Most definitions are self-explanatory from the above table. However, it is worth mentioning the various Callout syntaxes available.

Use the Obsidian Callouts guide for further instruction.

This plugin is best used with remark-gfm, rehype-raw, and remark-wiki-link-plus.

API

This package exports no identifiers. The default export is remarkObsidian.

unified().use(remarkObsidian)

Provides support for Obsidian-flavored Markdown, including tables, callouts, links, embeds, and more.

To get full use of the package, ensure you include Obsidian-compliant variables. Then, import the CSS file inside the global.css file:

@import "@heavycircle/remark-obsidian/obsidian.module.css";
Parameters

There are no parameters.

Returns

Transform (Transformer).

Security

Use of remark-videos does not involve rehype (hast) or user content so there are no openings for cross-site scripting (XSS) attacks.

License

MIT © heavycircle

1.1.11

12 months ago

1.1.10

12 months ago

1.1.9

12 months ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago