GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hotmit/table-markdown-userscript: Tampermonkey script to copy html to markdown format.

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
script-backup
script-backup
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
additional_info-en.md
additional_info-en.md
 
 
additional_info-vi.md
additional_info-vi.md
 
 
table-markdown.user.js
table-markdown.user.js
 
 

Repository files navigation

Table to Markdown Copier

Copy any html table on the web and convert them into markdown format.

Greasyfork Link

[ Greasyfork ]

[ Install ]

Usage

  1. Display The Interface
    • Press Shift, Shift, T (press in sequence, not together as combination)
  2. Click on the "MD" button to copy the markdown content to your clipboard

Features

  • Support both th and td (old vs new table markup)
  • Support colspan

Limitation

  • If the colspan is not exact, this will create improper table size (sometime ppl use large colspan to fill the unknown column size colspan="100" even when there only 7 columns for instance)

Todo

  • Fix the colspan error
  • Add ref link below the table
  • Detect and generate text alignment

Change Logs

  • v1.0.1
    • Fixed where the copy button pickup more than one tables

Example

Regular table

Before turn on the markdown control

Table after markdown table control is activated

After turn on the markdown control

Markdown Content

| Character | Byte order             | Size     | Alignment   |
|-----------|------------------------|----------|-------------|
| @         | native                 | native   | native      |
| =         | native                 | standard | none        |
| <         | little-endian          | standard | none        |
| >         | big-endian             | standard | none        |
| !         | network (= big-endian) | standard | none        |
[Table Source](https://docs.python.org/3/library/struct.html#byte-order-size-and-alignment)

Markdown Render

Character Byte order Size Alignment
@ native native native
= native standard none
< little-endian standard none
> big-endian standard none
! network (= big-endian) standard none
Table Source

About

Tampermonkey script to copy html to markdown format.

greasyfork.org/en/scripts/26890-table-to-markdown-copier

Topics

greasemonkeygreasemonkey-scripthtml-to-markdownmarkdown

Resources

Readme
MIT license
Activity

Stars

11 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.