Synopsis
Markdown Exporter : A module empowering drupal user to export contents in the form of Markdown files.
The purpose of this module is to export Drupal 7/8 nodes in the form of Markdown files. The principal objective behind this module to facilitate the JAMStack based architecture where decoupling of Drupal (from its presentation layer) is required.
This module can generate markdown files in both online and offline(via drush command) mode and these files will be stored under files directory.
* For a full description of the module, visit the project page:
https://www.drupal.org/project/markdown_exporter
* To submit bug reports and feature suggestions, or to track changes:
https://www.drupal.org/project/issues/search/markdown_exporter
Requirements
Markdownify is a packagist repo, which helps to convert html to markdown
Installation
* Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/xxxxx for further information.
Package Depedency
* https://packagist.org/packages/pixel418/markdownify
Roadmap
* D8 module should have the Markdownify as composer based package
* BitBucket API to integrate
* All field types to match, reference fields are yet to be done
Known problems
Reference fields are not converting
Pledges
Cheerful that the project will be ready in Drupal 7/8 and will be helpful to developers working in JAMstack
Credits
* Ramit Mitra actually published the project with all todos completed
* Samajit Das started the project with an idea behind JAMstack
Configuration
* Go to "admin/config/system/markdown-export/settings" change desired values
* For "Content Types & Fields JSON" go to "admin/config/system/markdown-export/content-type-settings"
* Content Types & Fields JSON: Content types & fields to be exported can be provided in form of JSON string as like {"page":{"formatter":["type", "title","created"],"content":["body"]}}. This JSON format has
two parts: formatter & content to specify the fields forming Markdown Header & Body part respectively.
* Markdown files directory: name of the dirctory(under files folder) to store generated markdown files. The module can create the directory if not exists
Resources
* The packagist repo: https://packagist.org/packages/pixel418/markdownify
* Read this article behind the idea of JAMstack: https://medium.com/@ruddhani/idea-behind-jamstack-markdown-and-a-drupal-...
Project information
- Module categories: Decoupled, Import and Export, Developer Tools
- Ecosystem: Github Flavored Markdown, GitHub, GitHub Connect
- 15 sites report using this module
- Created by samajit on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Stable release and bug fixes
Development version: 7.x-1.x-dev updated 19 Feb 2021 at 22:50 UTC