Matt Bierner
8943ea4790
Fix markdown code block styling ( #198351 )
...
Fixes #198183
Remove extra background and also removes the extra divs inside of the code blocks as these were causing issues with styling (extra padding)
2023-11-15 21:03:04 +01:00
hsfzxjy
870d659ffd
Fix nested list style in Markdown preview ( #190936 )
2023-08-22 22:24:53 +00:00
David Dossett
45efcb4d17
Fix markdown pre and quote styling ( #189586 )
2023-08-03 15:41:07 -07:00
Matt Bierner
26120d880b
Disable overscroll in all webviews ( #187624 )
...
Fixes #182013
2023-07-11 20:51:33 +02:00
Matt Bierner
6aca75d9d0
Fix markdown preview classes ( #187501 )
...
For #187234
Got introduced through a bad PR change. Makes more sense to move this styling to the css file instead
2023-07-10 13:04:03 -07:00
David Dossett
f72ec2a43f
Update markdown h1-h6 styles ( #185801 )
...
* Update markdown h1-h6 styles
* Fix separator height
2023-06-21 21:03:57 +02:00
Matt Bierner
fff3860de9
Always use vscode-textCodeBlock-background in rendered markdown ( #179313 )
...
Use vscode-textCodeBlock-background in rendered markdown
Fixes #179219
2023-04-05 23:02:22 +02:00
Teddy Bradford
b244524d08
Update Markdown preview styles to prevent sub
and sup
from affecting line height ( #178653 )
...
Prevent `sub` and `sup` from affecting line height
2023-03-30 18:07:18 +00:00
Matt Bierner
f4bf1f30a2
Skip ul and ol when highlighting selected markdown element ( #161139 )
...
Fixes #155552
For lists, the outer ul/ol always has the same source line as the first element in the list. We should prefer using the first element in the list when highlighting the active line
This also fixes a bug where scroll sync would stop working if you added lines to the doc. This was caused by `lineCount` getting out of sync as the document is being updated. I've removed this state and made the reveal logic more robust instead
2022-09-19 07:16:06 +02:00
Matt Bierner
a13e5e1da6
Also apply max-width to videos in webviews ( #159500 )
2022-08-30 00:52:54 +02:00
David Dossett
4bef8dc8d7
Fix #143837
2022-02-23 16:55:41 -08:00
Matt Bierner
7bc28074bf
Exclude tr from markdown hover
...
Fixes #135278
Fixes #135037
2021-10-18 17:13:44 -07:00
Matt Bierner
6a12866c3e
💄
2021-05-26 12:55:32 -07:00
Ashray Jha
5eb64c54ca
Modified markdown preview nested list styling ( #124445 )
...
* Modified markdown preview nested list styling
* Added proper styling to the nested list
* merge different rules into a single one
2021-05-26 09:05:35 -07:00
Hassan Sani
dbdc7a259e
added bottom spacing for table in markdown preview ( #124385 )
2021-05-24 12:14:01 -07:00
Matt Bierner
90b17ed115
Make it easier to override markdown table stylings
...
Fixes #105796
This makes the markdown preview's default css for tables less specific. This should make it easier to user or extensions to override it
2020-11-02 13:53:26 -08:00
Matt Bierner
bd11c7f95a
Don't use negative margins for spacing in markdown preview
2020-08-03 12:27:57 -07:00
Jason Williams
9a12a5abed
fix paragraphs inside of <ul>'s which are too spaced apart. ( #102719 )
...
* * paragraphs inside of <ul>'s were too spaced apart.
* It looks odd because markdown converts list items to <p>s
* li > p should be even better
2020-07-16 11:20:38 -07:00
Jason Williams
3ef3c105e6
h1 bottom margin is too much ( #102520 )
2020-07-14 11:21:45 -07:00
Matt Bierner
c828a5339b
Fix indentation style
2020-07-13 18:01:07 -07:00
Jason Williams
b8e773ebed
fix styling to improve heading spacing fixes #102036 ( #102427 )
...
* updating styling to make headings look better
* be consistent and use em
2020-07-13 17:40:38 -07:00
Benjamin Pasero
588097171c
Refactor our font stack ( #99429 )
...
* fonts - adopt monaco-monospace-font in more places and make it consistent
* font - use platform specific fonts in more places
* font - move system-ui before Ubuntu font in places where we cannot control platform
* font - only use system-ui on Linux
* fonts - adjust font stack for other windows
2020-06-05 10:56:07 +02:00
Matt Bierner
3e9b7f5072
Fix markdown fontsize
...
Fixes #98178
2020-05-20 15:40:27 -07:00
Matt Bierner
df88d8a7ef
Use vscode editor font variable in markdown preview
...
Fixes #97374
2020-05-11 14:23:16 -07:00
Danny Lin
ff118340b5
Use system-ui alias for UI fonts ( fixes #10144 ) ( #96948 )
...
Commit 45d93e9325
applied this change in
some areas, but it was reverted to fix #28619 . The underlying cause of
the regression was Chromium bug 733219 [1], which has now been fixed, so
this change should be safe to apply now.
The old font stacks have been kept with lower priorities to work around
Chromium bug 724393 [2].
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=733219
[2] https://bugs.chromium.org/p/chromium/issues/detail?id=724393
2020-05-08 08:21:40 +02:00
Benjamin Pasero
e5f0077f40
css 💄
2019-10-25 16:41:56 +02:00
Matt Bierner
8f6108beea
Removing unused .mac style rule for rendered markdown
2019-09-19 16:26:33 -07:00
Neonit
c5ab082ed7
Adjust Code Tab Size to 4 in Markdown Preview
...
Sets the tab size to 4 in the Markdown preview for code blocks in Markdown documents. I consider a tab size of 4 being standard and the default of 8 being unbearable. The few people, if any, using a different tab size than 4 can use the custom markdown preview style feature, if it is going to be fixed anytime (https://github.com/microsoft/vscode/issues/77290 ).
[`tab-size` is still marked *experimental* in the MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size ), but it doesn't hurt, if not supported. However, in the used Chromium version it is supported.
2019-07-22 11:49:04 +02:00
Matt Bierner
a558a9504a
Adding toWebviewResource api
...
For #76489
2019-07-08 18:38:47 -07:00
Matt Bierner
143bebfbb4
Use em for code font size instead of rem
...
This fixes some cases where a user style sheet may be setting a weird base font-size.
2019-05-29 15:44:48 -07:00
Matt Bierner
f250d19bb5
Use relative size for markdown code font size
...
Fixes #74125
2019-05-22 10:53:49 -07:00
Benjamin Pasero
83232ef060
fonts - remove HelveticaNeue-Light from list
2019-01-04 10:11:04 +01:00
Matt Bierner
a2974a0782
Fix markdown code blocks getting two backgrounds in preview
...
Fixes #53246
2018-06-28 15:18:05 -07:00
Matt Bierner
ab2efd6724
Make sure we inherit the correct border-color
...
#49978
2018-05-16 15:16:15 -07:00
Matt Bierner
be413aed89
Use css vars for more webview styling
...
Fixes #49749
2018-05-14 14:36:13 -07:00
Matt Bierner
468dc867cd
Rename markdown to markdown-language-features
2018-03-19 21:08:39 -07:00