1.0.51 • Published 4 years ago

tinyhtmlmd v1.0.51

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

4 years ago

1.0.50

4 years ago

1.0.49

4 years ago

1.0.48

4 years ago

1.0.47

4 years ago

1.0.46

4 years ago

1.0.45

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.40

4 years ago

1.0.39

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago