1.0.51 • Published 5 years ago

tinyhtmlmd v1.0.51

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago