Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/octahedroid/gatsby-remark-drupal
Provides support for markdown preprocessing to Drupal body fields.
https://github.com/octahedroid/gatsby-remark-drupal
drupal gatsby plugin remark
Last synced: 4 months ago
JSON representation
Provides support for markdown preprocessing to Drupal body fields.
- Host: GitHub
- URL: https://github.com/octahedroid/gatsby-remark-drupal
- Owner: octahedroid
- Archived: true
- Created: 2018-12-06T08:19:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T15:15:27.000Z (about 6 years ago)
- Last Synced: 2024-09-24T03:03:44.557Z (4 months ago)
- Topics: drupal, gatsby, plugin, remark
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gatsby-remark-drupal
Provides support for markdown preprocessing to Drupal body fields.
* Creates a new `text/markdown` field for drupal body fields of the selected content types.
* Replaces Drupal relative image paths to previously downloaded and cached images by the `gatsby-source-drupal ` plugin.NOTE: To make sure your Drupal site expose markdown use the Toast UI Editor integration for Drupal provided by the [tui_editor](https://www.drupal.org/project/tui_editor) module.
## Install
```
npm install --save @weknow/gatsby-remark-drupal
```## How to use
### Default configuration
```javascript
// In your gatsby-config.js
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`@weknow/gatsby-remark-drupal`,
```### Custom configuration
```javascript
// In your gatsby-config.js
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `@weknow/gatsby-remark-drupal`,
options: {
nodes: [`article`,`page`, `landing`, `cta`]
}
}
```
## Options
| Name | Default | Description |
| --- | --- | --- |
| `nodes` | [`article`,`page`] | The Drupal `node` types to process.