New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sitdown/juejin

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitdown/juejin

Convert 掘金 HTML into Markdown with JavaScript.

1.1.3
latest
Source
npm
Version published
Weekly downloads
58
1.75%
Maintainers
3
Weekly downloads
 
Created
Source

@sitdown/juejin

掘金 html 转 md 注意处:

  • 掘金进行了中文排版美化,如数字与中文、中文与英文间有空格
  • 掘金对图片进行了转储,地址存储在 img 标签的 data-src 下
  • 掘金对代码块做了处理,多了一个复制代码

Usage

import { Sitdown } from 'sitdown';
import { applyJuejinRule } from '@sitdown/juejin';

let sitdown = new Sitdown({
      keepFilter: ['style'],
      codeBlockStyle: 'fenced',
      bulletListMarker: '-',
      hr: '---',
});
sitdown.use(applyJuejinRule);

FAQs

Package last updated on 06 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts