@rokelamen/md2html 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,6 +26,8 @@ npm i -g @rokelamen/md2html
26
26
 
27
27
  ## Usage
28
28
 
29
+ ### As a command-line
30
+
29
31
  ```sh
30
32
  md2html [options] [input]
31
33
  ```
@@ -42,9 +44,12 @@ md2html "# Markdown content" > index.html
42
44
  md2html -f input.md -o index.html
43
45
  ```
44
46
 
45
- ## Development Log
47
+ ### As a library
46
48
 
47
- Why I choose to use [`rollup`](https://rollupjs.org/)?
49
+ ```javascript
50
+ import { parse } from '@rokelamen/md2html';
51
+ ```
48
52
 
49
- A: Every time I `import` a module, I have to add extension to the module file and it is probably a `.js` rather than `.ts`. It's wired that I must `import` a future JS file. So I decided to use a build tool(`rollup` of course) to pack all files together, which eliminates all `import` statements.
53
+ ## Development
50
54
 
55
+ For development logs, please refer to the [Development Log](docs/development.md).