Git Product home page Git Product logo

notion-markdown-cleaner's Introduction

Notion Export Markdown Content Cleaner

The Markdown Content Cleaner is a Node.js application that helps clean up markdown files with bad line wraps and formatting issues. It can be useful for fixing line breaks within paragraphs and ensuring proper formatting of content.

Usage

  1. Place the markdown files to be cleaned in the ./files directory.
  2. Run the application using the command node app.js.
  3. The cleaned files will be generated in the ./processed directory with the format YYYY-MM-DD - Title.md.
  4. The application performs the following steps for each file:
    • Extracts the title first line of the content.
    • Cleans up the title to be filename friendly.
    • Removes unnecessary metadata lines like Created, Tags, and Time.
    • Applies the content cleaner to fix line breaks and formatting issues.
    • Adds front matter to the beginning of the file with the cleaned content.
    • Writes the cleaned file to the ./processed directory.

Please note that the application assumes the markdown files are in the proper format with metadata and content. This might need to be modified to fit any special cases.

Dependencies

The Markdown Content Cleaner requires the following dependencies:

  • Node.js
  • File System (fs) module

Customization

The application provides options to customize the front matter, tags, and file naming convention. You can modify the code in app.js according to your specific requirements.

License

This application is open-source and available under the MIT License.

notion-markdown-cleaner's People

Contributors

stlcajun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.