Skip to content

Commit 21ba666

Browse files
committed
Update readme with data-paste-markdown-skip
1 parent c8ca1ff commit 21ba666

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Paste Markdown objects
22

3-
Paste spreadsheet cells as a Markdown table. Convert pasted image URLs to
4-
Markdown image link syntax.
3+
- Paste spreadsheet cells and HTML tables as a Markdown tables.
4+
- Paste image URLs as Markdown image links.
5+
- *Paste markdown as markdown. See [`@github/quote-selection`/Preserving markdown syntax](https://github.com/github/quote-selection/tree/9ae5f88f5bc3021f51d2dc9981eca83ce7cfe04f#preserving-markdown-syntax) for details.
56

67
## Installation
78

@@ -31,6 +32,16 @@ import subscribe from '@github/paste-markdown'
3132
observe('textarea[data-paste-markdown]', {subscribe})
3233
```
3334

35+
### Excluding `<table>`s
36+
37+
Some `<table>`s are not meant to be pasted as markdown; for example, a file content table with line numbers in a column. Use `data-paste-markdown-skip` to prevent it.
38+
39+
```html
40+
<table data-paste-markdown-skip>
41+
...
42+
</table>
43+
```
44+
3445
## Development
3546

3647
```

0 commit comments

Comments
 (0)