1.0.51 • Published 3 years ago

tinyhtmlmd v1.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

tinyhtmlmd

About

This is a html2markdown converter for the specific README.md(a html file) generated by leethub.

I have done the following:

  • The title will be converted to a first-level title .
  • The degree of difficulty will be converted into a secondary heading and "## 1. Problem Description - " will be added before it.
  • html \ codeblock converted to markdown codeblock with text property.
  • \ will be removed when it appers in codeblock.
  • The \ tag will be filtered out for the title of the github pages comes with a split line.
  • "\n\n## 2. Solutions\n" will be added at the end of the file(it only works in rt command).

Usage

command

install first:

   npm install tinyhtmlmd -g

after install:

Make sure you have a README.md(will be converted file) your current folder.

run rt command,the file will be converted to a pure md file.

npm module

  1. install
   npm install tinyhtmlmd --save
  1. import

commonjs module:

const randomName = require('tinythtmlmd')

es6 module:

import {h2m} from 'tinyhtmlmd'

browser

just cory ./dist/tiny.js, this is a umd browser support file. Output library name is tiny

<script src="../dist/tiny.js"></script>
<script>
    console.log(tiny.h2m)
    console.log(tiny.h2m('<h3>this is h3</h3>>'))
    console.log(another.h2m)
</script>

output:

ƒ P(e){...
## 1. Description - this is h3\>
Uncaught ReferenceError: another is not defined
1.0.51

3 years ago

1.0.50

3 years ago

1.0.49

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.40

3 years ago

1.0.39

3 years ago

1.0.38

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago