https://github.com/dotansimha/remark-import-partial
A plugin for Unified/Remark for populating `@import` syntax with partial files
https://github.com/dotansimha/remark-import-partial
Last synced: 8 months ago
JSON representation
A plugin for Unified/Remark for populating `@import` syntax with partial files
- Host: GitHub
- URL: https://github.com/dotansimha/remark-import-partial
- Owner: dotansimha
- Created: 2020-03-30T10:05:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T07:16:09.000Z (over 3 years ago)
- Last Synced: 2025-03-31T12:11:28.181Z (10 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - remark-import-partial
README
# `remark-import-partial`
📝 Populate `@import` syntax with partial files
## Installation
```sh
yarn add -D remark-import-partial
```
## Setup
See [**Using plugins**](https://github.com/remarkjs/remark/blob/master/doc/plugins.md#using-plugins) in the official documentation.
## Usage
Transform:
```md
Some content
{@import ./my-name.md}
Other content
```
into:
```md
Some content
Dotan
Other content
```
The file path is relative to the markdown file path.
## License
Dotan Simha
[MIT](LICENSE)