mdmath icon indicating copy to clipboard operation
mdmath copied to clipboard

Default mdmath style should not impact "normal" markdown preview

Open arnauldvm opened this issue 3 years ago • 2 comments

Summary

When the extension is enable, all my Markdown preview is impacted.

For example, tables are centered, text is justified...

Expected behavior

I was expecting mdmath would only impact inline math content.

Actual behavior

mdmath impacts style for whole content

Steps to reproduce

  1. Create markdown file with table and long text paragraph
  2. Launch markdown preview
  3. Observe: the table is centered and the text is justified

Code example

| Date | 2021-08-02
|:---- |:----------
| Id   | XXX
| Participants | a b c

Lorem ipsum dolor sit amet, consectetur_adipiscing_elit_sed_do_eiusmod_tempor_incididunt_ut_labore_et_dolore_magna_aliqua

Related links

Environment

     Operating system: Windows 10

      VSCode version:
Version: 1.64.2 (system setup)
Commit: f80445acd5a3dadef24aa209168452a3d97cc326
Date: 2022-02-09T22:02:28.252Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.18363

Markdown+Math version: v2.7.4

arnauldvm avatar Mar 02 '22 10:03 arnauldvm

I'm able to reproduce the centered tables by enabling mdmath. I'm not encountering justified text. Would love to see this fixed.

AzureArmageddon avatar Feb 05 '23 10:02 AzureArmageddon