Skip to content

Commit

Permalink
fix(dingus) Some final cleanup, version number and README
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Aug 11, 2020
1 parent 5fdf124 commit 45ca110
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
</a>
</p>

### Visit the [TemplateMark Dingus](https://templatemark-dingus.netlify.app)

## Introduction

A transformation and parsing framework for converting markdown content to HTML, Slate (for rich-text editing) and other structured document object models (DOMs).
Expand All @@ -27,13 +29,14 @@ Top level repository (markdown-transform), with sub packages. Each sub-package i
* [markdown-transform](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-transform) : High-level API to transform any supported format
* [markdown-common](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-common) : converts markdown strings to/from the CommonMark DOM
* [markdown-cicero](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-cicero) : converts CommonMark DOM to/from the CiceroMark DOM
* [markdown-it-cicero](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-it-cicero) : markdown-it plugin for contracts
* [markdown-slate](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-slate) : converts CiceroMark DOM to/from the Slate DOM
* [markdown-html](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-html) : converts CiceroMark DOM to/from HTML
* [markdown-pdf](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-pdf) : converts a PDF file to/from a CiceroMark DOM
* [markdown-docx](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-docx) : converts a DOCX file to a CiceroMark DOM
* [markdown-cli](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-cli) : command line utilities
* [markdown-template](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-template) : converts JSON data and markdown strings to/from TemplateMark
* [markdown-it-template](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-it-template) : plugins to markdown-it for markdown extensions
* [markdown-it-template](https://github.com/accordproject/markdown-transform/tree/master/packages/markdown-it-template) : markdown-it plugin for templates

### CommonMark DOM

Expand Down
1 change: 1 addition & 0 deletions packages/dingus/lib/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ html
.container
- var s = self.self.demo;
h1 templatemark dingus
sub.version= ' ' + s.version

.form-inline.demo-options
.checkbox
Expand Down
16 changes: 14 additions & 2 deletions packages/dingus/lib/sample.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
Name of the person to greet: {{name}}.
Thank you!
## Try TemplateMark

You can try TemplateMark here. This dingus is powered by
[@accordproject/markdown-transform](https://github.com/accordproject/markdown-transform).

TemplateMark lets you to create templates for CommonMark. Templates can contain {{variables}}, {{% formulas %}}, and {{#if true}}template blocks{{/if}}.

_It can also, of course, contain **markdown**:_

1. item one
2. item two
- sublist
- sublist

4 changes: 3 additions & 1 deletion packages/dingus/lib/templatemark.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ span:before {
border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}
span:hover:after{ visibility: visible; opacity: 1; bottom: 20px; }
span:hover:before{ visibility: visible; opacity: 1; bottom: 14px; }
span:hover:before{ visibility: visible; opacity: 1; bottom: 14px; }

.version { font-family: monospace; font-size: 60%; color: #bcbcbc; }
4 changes: 3 additions & 1 deletion packages/dingus/scripts/demodata.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

var fs = require('fs');
var path = require('path');
var packageJson = require('../package.json');

console.log(JSON.stringify({
self: {
demo: {
source: fs.readFileSync(path.join(__dirname, '../lib/sample.md'), 'utf8')
source: fs.readFileSync(path.join(__dirname, '../lib/sample.md'), 'utf8'),
version: packageJson.version
}
}
}, null, 2));

0 comments on commit 45ca110

Please sign in to comment.