Skip to content

Added support to allow pasting as Markdown table#36

Merged
atsyplenkov merged 5 commits intoatsyplenkov:masterfrom
juarezr:feat/markdown
Sep 9, 2025
Merged

Added support to allow pasting as Markdown table#36
atsyplenkov merged 5 commits intoatsyplenkov:masterfrom
juarezr:feat/markdown

Conversation

@juarezr
Copy link
Contributor

@juarezr juarezr commented Sep 5, 2025

No description provided.

@atsyplenkov
Copy link
Owner

Thanks for your PR, markdown tables were in a roadmap for very long time. I will review your submission next week

@atsyplenkov atsyplenkov self-requested a review September 5, 2025 21:31
@atsyplenkov
Copy link
Owner

@cursor review

cursor[bot]

This comment was marked as outdated.

Copy link
Owner

@atsyplenkov atsyplenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, it's looking pretty good. I've noticed that you used some custom emoji, can you please replace them with Unicode Standardized ones? Currently they are not properly rendering in the web and across platforms.

Additionally Cursor found a bug, please, fix it

package.json Outdated
"pastum.defaultAligmentMarkdown": {
"type": "string",
"enum": [
"columnar ▥",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emoji characters unfortunately don’t render consistently across browsers and platforms. Can you please replace them with ones from Unicode List? https://www.unicode.org/emoji/charts/full-emoji-list.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1a25729.
Please let me know if you find any icon that better represents the format differences.

// 3: Ask the user which aligment they want to use
if (aligment === null) {
aligment = await vscode.window.showQuickPick(
["columnar ▥", "compact 🗉"],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here regarding the emoji

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also changed in 1a25729.

@juarezr juarezr requested a review from atsyplenkov September 9, 2025 16:17
@atsyplenkov
Copy link
Owner

@cursor review

* Generates a markdown table.
* Supports columnar and compact aligments.
*/
function createMarkdown(tableData, aligment) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent Emoji Usage and Typo Error

The quickpick options for table alignment use inconsistent emojis (e.g., 'columnar ↩️') compared to the package.json configuration enum ('columnar ↔️'), which could confuse users. Also, 'alignment' is consistently misspelled as 'aligment' in variable and parameter names within the file.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, Cursor! 🥇

Copy link
Owner

@atsyplenkov atsyplenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've just tested and everything is cool. Will merge in main

@atsyplenkov atsyplenkov merged commit 2d75428 into atsyplenkov:master Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants