Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
cfa7807f8f | |||
ba3210c7f5 | |||
91424492ba | |||
d524a86921 | |||
6a1d91d5da | |||
035e8dc0cd | |||
57cadd079c | |||
0ead80750a |
@ -123,7 +123,7 @@ pages:
|
||||
stage: metadata
|
||||
script:
|
||||
- npmci node install lts
|
||||
- npmci command npm install -g @gitzone/tsdoc
|
||||
- npmci command npm install -g @git.zone/tsdoc
|
||||
- npmci npm prepare
|
||||
- npmci npm install
|
||||
- npmci command tsdoc
|
||||
|
@ -7,10 +7,10 @@
|
||||
"projectType": "npm",
|
||||
"module": {
|
||||
"githost": "gitlab.com",
|
||||
"gitscope": "pushrocks",
|
||||
"gitscope": "push.rocks",
|
||||
"gitrepo": "smartmarkdown",
|
||||
"description": "do more with markdown files",
|
||||
"npmPackagename": "@pushrocks/smartmarkdown",
|
||||
"npmPackagename": "@push.rocks/smartmarkdown",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
2389
package-lock.json
generated
2389
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmarkdown",
|
||||
"version": "2.0.14",
|
||||
"name": "@push.rocks/smartmarkdown",
|
||||
"version": "3.0.2",
|
||||
"private": false,
|
||||
"description": "do more with markdown files",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -13,25 +13,23 @@
|
||||
"build": "tsbuild --web --allowimplicitany --skiplibcheck"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.61",
|
||||
"@gitzone/tsrun": "^1.2.32",
|
||||
"@gitzone/tstest": "^1.0.71",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^17.0.34",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
"@git.zone/tsbuild": "^2.1.61",
|
||||
"@git.zone/tsrun": "^1.2.37",
|
||||
"@git.zone/tstest": "^1.0.86",
|
||||
"@push.rocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^20.11.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartyaml": "^2.0.5",
|
||||
"@push.rocks/smartyaml": "^2.0.5",
|
||||
"@types/turndown": "^5.0.1",
|
||||
"remark-frontmatter": "^4.0.1",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"remark-html": "^15.0.1",
|
||||
"remark-parse": "^10.0.1",
|
||||
"remark-stringify": "^10.0.2",
|
||||
"remark-frontmatter": "^5.0.0",
|
||||
"remark-gfm": "^4.0.0",
|
||||
"remark-html": "^16.0.1",
|
||||
"remark-parse": "^11.0.0",
|
||||
"remark-stringify": "^11.0.0",
|
||||
"turndown": "^7.1.1",
|
||||
"turndown-plugin-gfm": "^1.0.2",
|
||||
"unified": "^10.1.2"
|
||||
"unified": "^11.0.4"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
6758
pnpm-lock.yaml
generated
Normal file
6758
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
readme.md
12
readme.md
@ -1,8 +1,8 @@
|
||||
# @pushrocks/smartmarkdown
|
||||
# @push.rocks/smartmarkdown
|
||||
do more with markdown files
|
||||
|
||||
## Availabililty and Links
|
||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartmarkdown)
|
||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/smartmarkdown)
|
||||
* [gitlab.com (source)](https://gitlab.com/pushrocks/smartmarkdown)
|
||||
* [github.com (source mirror)](https://github.com/pushrocks/smartmarkdown)
|
||||
* [docs (typedoc)](https://pushrocks.gitlab.io/smartmarkdown/)
|
||||
@ -13,14 +13,14 @@ Status Category | Status Badge
|
||||
-- | --
|
||||
GitLab Pipelines | [](https://lossless.cloud)
|
||||
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
||||
npm | [](https://lossless.cloud)
|
||||
npm | [](https://lossless.cloud)
|
||||
Snyk | [](https://lossless.cloud)
|
||||
TypeScript Support | [](https://lossless.cloud)
|
||||
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
Code Style | [](https://lossless.cloud)
|
||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
|
||||
|
||||
## Usage
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import * as smartmarkdown from '../ts/index.js';
|
||||
|
||||
let smartMarkdownInstance: smartmarkdown.SmartMarkdown;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartmarkdown',
|
||||
version: '2.0.14',
|
||||
name: '@push.rocks/smartmarkdown',
|
||||
version: '3.0.2',
|
||||
description: 'do more with markdown files'
|
||||
}
|
||||
|
@ -2,6 +2,12 @@ import * as plugins from './smartmarkdown.plugins.js';
|
||||
import { MdParsedResult } from './smartmarkdown.classes.mdparsedresult.js';
|
||||
|
||||
export class SmartMarkdown {
|
||||
public static async easyMarkdownToHtml(mdStringArg: string) {
|
||||
const smartmarkdownInstance = new SmartMarkdown();
|
||||
const mdParsedResult = await smartmarkdownInstance.getMdParsedResultFromMarkdown(mdStringArg);
|
||||
return mdParsedResult.html;
|
||||
}
|
||||
|
||||
constructor() {}
|
||||
|
||||
/**
|
||||
@ -11,7 +17,7 @@ export class SmartMarkdown {
|
||||
public async getMdParsedResultFromMarkdown(mdStringArg: string): Promise<MdParsedResult> {
|
||||
const result = await MdParsedResult.createFromMarkdownString(mdStringArg);
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
public htmlToMarkdown(htmlString: string): string {
|
||||
const turndownInstance = new plugins.turndown({
|
||||
|
@ -1,5 +1,5 @@
|
||||
// pushrocks scope
|
||||
import * as smartyaml from '@pushrocks/smartyaml';
|
||||
import * as smartyaml from '@push.rocks/smartyaml';
|
||||
|
||||
export {
|
||||
smartyaml
|
||||
|
@ -3,7 +3,12 @@
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext"
|
||||
}
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user