Skip to content

Commit 45ca110

Browse files
committed
fix(dingus) Some final cleanup, version number and README
Signed-off-by: Jerome Simeon <[email protected]>
1 parent 5fdf124 commit 45ca110

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
</a>
1616
</p>
1717

18+
### Visit the [TemplateMark Dingus](https://templatemark-dingus.netlify.app)
19+
1820
## Introduction
1921

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

3841
### CommonMark DOM
3942

packages/dingus/lib/index.pug

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ html
3232
.container
3333
- var s = self.self.demo;
3434
h1 templatemark dingus
35+
sub.version= ' ' + s.version
3536

3637
.form-inline.demo-options
3738
.checkbox

packages/dingus/lib/sample.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1-
Name of the person to greet: {{name}}.
2-
Thank you!
1+
## Try TemplateMark
2+
3+
You can try TemplateMark here. This dingus is powered by
4+
[@accordproject/markdown-transform](https://github.com/accordproject/markdown-transform).
5+
6+
TemplateMark lets you to create templates for CommonMark. Templates can contain {{variables}}, {{% formulas %}}, and {{#if true}}template blocks{{/if}}.
7+
8+
_It can also, of course, contain **markdown**:_
9+
10+
1. item one
11+
2. item two
12+
- sublist
13+
- sublist
14+

packages/dingus/lib/templatemark.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,6 @@ span:before {
106106
border-color: rgba(0,0,0,0.85) transparent transparent transparent;
107107
}
108108
span:hover:after{ visibility: visible; opacity: 1; bottom: 20px; }
109-
span:hover:before{ visibility: visible; opacity: 1; bottom: 14px; }
109+
span:hover:before{ visibility: visible; opacity: 1; bottom: 14px; }
110+
111+
.version { font-family: monospace; font-size: 60%; color: #bcbcbc; }

packages/dingus/scripts/demodata.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77

88
var fs = require('fs');
99
var path = require('path');
10+
var packageJson = require('../package.json');
1011

1112
console.log(JSON.stringify({
1213
self: {
1314
demo: {
14-
source: fs.readFileSync(path.join(__dirname, '../lib/sample.md'), 'utf8')
15+
source: fs.readFileSync(path.join(__dirname, '../lib/sample.md'), 'utf8'),
16+
version: packageJson.version
1517
}
1618
}
1719
}, null, 2));

0 commit comments

Comments
 (0)