Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark Down v2 acitve in one solution, but not in the other #126

Open
Miclo opened this issue Nov 29, 2024 · 0 comments
Open

Mark Down v2 acitve in one solution, but not in the other #126

Miclo opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Miclo
Copy link

Miclo commented Nov 29, 2024

Describe the bug
I have a c# solution with a md-file. I pushed it to a repo (Sol1). I downloaded a zip from the repo and extracted it to the downloads folder (Sol2). Sol1 works perfectly fine. Images from a subfolder are shown in preview and I have all the MDv2-context menu's. In Sol2 the same code doesn't work and I don't have MDv2-context menus.
For showing the images I use the following code, because I want to be able to set the width.

<p align="center">
<img src="Images\My image.jpg" alt="My image" width="400"/>
</ p>

I have used this code in several solutions and it works. Only in Sol2 it doesn't. The code following code works everywhere, but I can't set the width.

![File](Images/Mark%20Down%20Editor.png)

To Reproduce
Steps to reproduce the behavior:

  1. Create a solution folder _Docs
  2. Via Windows Explorer create a _Docs folder in the Solution folder
  3. In the _Docs folder add an Image folder
  4. Add an image to the image folder
  5. In VS right click on _Docs; add existing item and add the image folder
  6. In VS right click on the Images folder; add existing item and add the image
  7. Right click on the _Docs folder; add new item; select textfile; .md (wasn't there a special md-filetype? There isn't now)
  8. Add code (<p align...) like above with correct path to your image
  9. All the above lead to Sol1
  10. Add your project to a git repository
  11. Download your repository to a zip-file
  12. Extract the zip in a folder in the downloads folder
  13. The downloaded solution is Sol2
  14. Start the solution and trust the downloade solution

Expected behavior
Sol1 will work fine, you will see the image in the preview and you'll see the image while hovering over the file-path.
Sol2 won't show the image in the preview, but it will also show while hovering just like in Sol1.

Screenshots
In Sol1 You see the image and you also have these two context menus:
image

and

image
In Sol2 the context menus won't be available

Additional context
I think to remember that if you did an "Add new item" you could choose MarkDown. I don't have that now.
Sol1 and Sol2 show act the same in VS2022 preview (7.13.0 Preview 1.0) and in VS2022 (17.12.2)
I am using Windows 11

@Miclo Miclo added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant