Giter Site home page Giter Site logo

md2json's Introduction

md2json Build Status

Markdown to JSON converter for documentation files.

It's mostly created to convert d2s-format's README.md to a JSON document that can be then used to parse a binary .d2s file, which then can help you set desired attributes of your Diablo 2 character.

Example

md2json converts this markdown document:

# object 1

description of object1's structure

attr 1 | attr 2 | name
-------|--------|------------
a      |    1   | field 1
b      |    2   | [field 2](#field-2)
c      |    3   | field 3

## field 2

description of field 2's structure

value  | name
-------|-------
123    | fx
456    | fy
789    | fz

to this JSON:

{
    "object 1":
    {
        "description": "description of object1's structure",
        "attributes":
        [
            {"attr 1": "a", "attr 2": 1, "name": "field 1"},
            {"attr 1": "b", "attr 2": 2, "name": "field 2"},
            {"attr 1": "c", "attr 2": 3, "name": "field 3"}
        ],
        "objects":
        {
            "field 2":
            {
                "123": "fx",
                "456": "fy",
                "789": "fz"
            }
        }
    }
}

md2json's People

Contributors

szymag avatar

Watchers

 avatar  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.