String Utilities Công cụ đã được cập nhật 3 tuần trước

Markdown Remove Tables

Markdown Remove Tables deletes every pipe-style table from a Markdown document and keeps the headings, paragraphs, lists and code around them. A table is detected when a pipe row is followed by a separator row such as | --- | --- |. Extra blank lines are collapsed after removal. Everything runs in your browser, and you can copy the cleaned text or download it as markdown-without-tables.md.

Luôn miễn phí Dễ sử dụng Kết quả ngay lập tức Riêng tư và an toàn

Sử dụng Markdown Remove Tables

Markdown: Xóa bảng

Loại bỏ các bảng Markdown dạng dấu gạch ngang đồng thời giữ cho nội dung xung quanh gọn gàng và dễ đọc.

Nhập Markdown

Dán mã Markdown chứa bảng dạng dấu gạch chéo
Loại bỏ các bảng có dấu gạch dọc (|) làm hàng phân cách| --- | --- |. Văn bản thông thường chứa một dấu gạch dọc duy nhất sẽ được giữ nguyên.
Chưa được xử lý
Tình trạng dọn dẹp
0 đã xóa
Các bảng đã bị xóa

Xuất ra định dạng Markdown

Dạng Markdown sau khi các bảng đã được xóa
Mẹo tháo gỡ
Tính năng này sẽ xóa hoàn toàn các khối bảng dạng dấu gạch dọc (pipe-table) trong Markdown và gộp các dòng trống thừa lại sau khi xóa.
Liên kết công cụ
Đã sao chép vào khay nhớ tạm.
Hãy giúp cải thiện công cụ này

Đọc nội dung

Tìm hiểu cách thức hoạt động của công cụ này và khi nào nên sử dụng nó.

What Markdown Remove Tables does

Markdown Remove Tables takes a Markdown document, finds every pipe-style table in it, and deletes those table blocks while leaving the headings, paragraphs, lists, quotes and code around them in place. The result is the same document with the grids gone and the blank lines tidied up, ready to copy or save as a .md file.

It is a narrow tool on purpose. It does not try to turn tables into sentences, it does not summarise them and it does not move their content anywhere else. It simply cuts each table out. That makes it predictable: what you get back is your original text minus the tables, nothing more.

Why you might want tables gone

Tables are a good fit for a README or a documentation site, but they get in the way in plenty of other places. A few situations where stripping them is the fastest fix:

  • Plain email and chat. Many mail clients and messaging apps show Markdown tables as raw rows of pipes and dashes. Removing them keeps the message readable.
  • Text-to-speech and screen reading of exported text. A row like | Plan | Price | Seats | read aloud is noise. If the table data is not needed in the spoken version, dropping it helps.
  • Feeding prose into another system. Word counters, summarisers, translation tools and AI prompts often handle running text better without large grids of numbers mixed in.
  • Making a narrative-only edition. Release notes, changelogs and reports sometimes need a short version for people who only want the story, not the comparison matrix.
  • Cleaning scraped or exported content. Notes pulled from wikis, issue trackers or note apps can carry dozens of small tables you have no use for.

How the tool decides what counts as a table

Everything happens in your browser with JavaScript that ships with the page. Your Markdown is not sent to the server when you click Remove Tables; the text is processed in the tab and the result is written into the output editor.

The detection rule is simple and worth understanding before you rely on it:

  1. A line is a possible header row when it contains a pipe character with text on both sides of a pipe, for example | Name | Role | or Name | Role.
  2. That line must be followed immediately by a separator row: a line split by pipes into at least two cells, where every cell is three or more dashes with an optional colon at either end. | --- | --- |, |:---|---:| and | :---: | --- | all qualify.
  3. When both conditions are met, the header, the separator and every following line that still looks like a pipe row are treated as one table block and removed. Blank lines that directly follow the block are removed as well.
  4. After all tables are cut, any run of three or more line breaks is collapsed into a single blank line and the leading and trailing whitespace of the whole result is trimmed.

This is why the hint under the input says that normal text containing a single pipe is preserved. A sentence such as Use the a | b syntax for alternatives is not followed by a separator row, so it stays untouched.

The workspace at a glance

AreaWhat it shows or does
Input MarkdownEditor where you paste or type the source. Footer shows the character count and a live count of possible tables.
PasteReads text from your clipboard into the input, if your browser allows clipboard access.
Remove TablesRuns the removal and fills the output editor.
Copy Input / ClearCopies the source, or empties both editors and resets the counters.
Cleanup statusShows Not processed yet, Output ready, or Output is empty.
Tables removedThe number of table blocks cut in the last run.
Output MarkdownRead-only editor with the cleaned text, plus character and word counts.
Copy Output / DownloadCopies the result or saves it as markdown-without-tables.md.

Step by step

  1. Paste your Markdown into Input Markdown, or click Paste at the top to pull it from the clipboard.
  2. Glance at the footer counter. If it reads 0 possible tables, the tool sees nothing it will remove, which usually means a separator row is missing or malformed.
  3. Click Remove Tables. A short message tells you whether tables were removed or none were found.
  4. Check the Tables removed card and the Cleanup status card. Output ready means you have text to use.
  5. Read through the Output Markdown panel, especially around the spots where tables used to be.
  6. Click Copy Output to put the result on your clipboard, or Download to save markdown-without-tables.md.

If you edit the input after a run, the status resets to Not processed yet and the removed count goes back to zero, so you always know whether the output matches the current input. Click Remove Tables again to refresh it.

A worked example

Suppose your source looks like this:

## Pricing
Three plans are available.
| Plan | Price |
| --- | ---: |
| Basic | 5 |
| Pro | 12 |
Contact sales for teams.

After removal you get the heading, the sentence Three plans are available., one blank line, and Contact sales for teams. The counter shows one table removed. If you want the lead-in sentence to still make sense, you may want to reword it afterwards, since the tool does not rewrite your prose.

Good habits

  • Leave a blank line after each table in the source. The removal keeps consuming lines while they look like pipe rows, so a paragraph that sits directly under a table and happens to contain a pipe with text on both sides would be swallowed too.
  • Compare the possible-table count with what you expect. If your document has five tables and the counter says three, two of them have non-standard separators and will be left in place.
  • Keep the original. Use Copy Input or keep your source file, because the removal is not reversible from the output.
  • Review references to tables. Phrases such as "see the table below" will be left dangling. A quick search for the word "table" in the output catches most of them.

What to avoid

  • Do not paste Markdown where table examples live inside fenced code blocks if you need those examples kept. The detector does not skip code fences, so a table shown as an example inside ``` fences is removed just like a real one.
  • Do not expect HTML tables to be removed. A <table> element written in raw HTML is not a pipe table and stays in the output.
  • Do not use this tool to keep the data in another shape. If you want the values without the grid, a plain-text conversion is a better fit than deletion.
  • Do not run it on a file you cannot recreate without saving a copy first.

Limitations

  • Separator rules are strict. Each separator cell needs at least three dashes. A separator written with two dashes, such as |--|--|, is not recognised, and the table stays.
  • Single-column tables are skipped. The separator must split into at least two cells, so a one-column table is left alone.
  • No awareness of code fences, front matter or HTML blocks. The scan is line by line across the whole text.
  • Other table syntaxes are not handled. Grid tables, simple tables from other Markdown dialects and tables built with spaces only are not detected.
  • Blank-line tidying is global. Any stretch of three or more line breaks anywhere in the document is collapsed to one blank line, not just the places where tables were.
  • Browser memory is the practical size limit. There is no fixed cap in the code, but very large documents can make the editor slow.

Related Markdown tools

If you want to tidy a table rather than delete it, use the Markdown Table Formatter. If you are starting a new table from scratch, the Markdown Table Generator builds the skeleton for you. And if your goal is readable prose with all formatting gone, try Markdown to Text Converter.

Frequently Asked Questions

Câu hỏi thường gặp

Các câu trả lời ngắn gọn cho những thắc mắc mà người dùng thường đặt ra trước khi tin tưởng vào kết quả.

No. The removal runs in your browser with JavaScript on the page. The text stays in your tab, and the download is created locally from the output editor.

The tool only counts a table when a pipe row is directly followed by a separator row in which every cell has three or more dashes, optionally with colons. A missing separator, a separator with only two dashes, or a blank line between header and separator will stop detection.

Not on its own. A line with a pipe is only removed when it starts a table, meaning a valid separator row follows it, or when it sits directly under a detected table and still looks like a pipe row. Leave a blank line after tables to be safe.

Yes. The scan does not skip fenced code blocks, so a pipe table shown as an example inside a code fence is removed as well. Move such examples out or restore them by hand afterwards.

No. Only Markdown pipe tables are detected. Raw HTML tables are left exactly as they are in the output.

Blank lines right after a table are removed with it and a single blank line is left in its place. After that, any run of three or more line breaks in the whole document is reduced to one blank line, and the start and end of the output are trimmed.

A UTF-8 Markdown file named markdown-without-tables.md containing exactly what is shown in the Output Markdown panel.

Bình luận (0)

Dành cho các cuộc thảo luận của người dùng, các trường hợp ngoại lệ và các mẹo bổ sung.
Để lại bình luận
Bình luận của bạn sẽ được hiển thị công khai sau khi gửi.
Chưa có bình luận nào. Hãy là người đầu tiên bình luận!
Hãy cho chúng tôi biết!
Báo cáo sự cố liên quan đến công cụ này

Hãy mô tả vấn đề mà bạn gặp phải để chúng tôi có thể tìm hiểu và cải thiện công cụ này.

Điều gì hữu ích nhất
Vui lòng cung cấp thông tin về dữ liệu đầu vào, kết quả mong đợi, kết quả thực tế, trình duyệt/thiết bị và ảnh chụp màn hình (nếu có thể).
Nút chụp màn hình sẽ chụp lại trang web trong trình duyệt và đính kèm hình ảnh được tạo ra vào biểu mẫu này.
Ảnh chụp màn hình toàn trang
Được ghi lại trên trình duyệt của bạn bằng newisty.
Chưa có ảnh chụp màn hình nào được chụp.
Công cụ Báo cáo