sullivan-ben / vscode-markdown-table-block

MIT License
1 stars 1 forks source link

Remote platform support #8

Open sullivan-ben opened 8 months ago

sullivan-ben commented 8 months ago

Problem

Other platforms do not support MdTB. Some allow extensions, so native table blocks could be previewed, but others like Github, Gitlab, etc do not (at least when it comes to markdown preview)

Solution

Only convert to the markdown table block when the cursor enters a markdown table - then convert back to the table when cursor leaves.

Issues:

sullivan-ben commented 8 months ago

What about acting more like a vcs linter - have a setting that prevents (or prompts) if trying to push code that has MdTB tables.

Eg, something like:

> Local branch contains markdown table blocks. Your workspace settings require all tables to be converted to native markdown before pushing to remote
> 1. [Convert All and Push]
> 2. [List Files]
> 3. [Cancel]