Skip to content

Commit

Permalink
doc: add description for turndown options
Browse files Browse the repository at this point in the history
  • Loading branch information
telesoho committed Jun 27, 2024
1 parent d347075 commit e156088
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
"MarkdownPaste.nameBase": "image",
"MarkdownPaste.nameSuffix": "_${datetime}",
"MarkdownPaste.path": "${fileWorkspaceFolder}/res/images",
"MarkdownPaste.namePrefix": "${fileBasename}_"
"MarkdownPaste.namePrefix": "${fileBasename}_",
"MarkdownPaste.turndownOptions": {
"headingStyle": "atx",
"bulletListMarker": "-",
"strongDelimiter": "**",
"emDelimiter": "*",
"preformattedCode": "true",
"hr": "\n\n* * * *\n\n"
}
}

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ Smartly paste for Markdown.

Default value is `True`.

- `MarkdownPaste.turndownOptions`

Use turndown options when cover html to markdown, please see [turndown options](https://github.com/mixmark-io/turndown#options) for detail.

Default value is `setext`

- `MarkdownPaste.lang_rules`

As `MarkdownPaste.rules`, you can define rules for other language (for example: asciidoc).
Expand Down

0 comments on commit e156088

Please sign in to comment.