/markdown-to-json

Simple JS library to convert github markup tables to JSON

Primary LanguageJavaScript

markdown-to-json

About

The idea for this library came from the desire to create post-its from github issues used on our online projects.

Github use set of transformations to proccess and show their markups, in specif for tables, that were currently rendered as HTML tables.

This library will transform markups also tables to json files.

Examples

Example usage

  <table id="my-table-id">
    <thead>
      <tr>
        <th></th>
        <th>Histórias   tarefas</th>
        <th align="center">Back</th>
        <th align="right">Front</th>
        <th align="right">SEO</th>
        <th align="right">QA</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>35</td>
        <td><a href="https://github.com/rbsdev/flip/issues/125">Publicação flip AN e SOL</a></td>
        <td align="center"></td>
        <td align="right"></td>
        <td align="right"></td>
        <td align="right"></td>
      </tr>
    </tbody>
  </table>
var converter = new TableConverter();  

converter.htmlToJSON($('my-table-id'));