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

Releases