mjbvz / vscode-github-markdown-preview-style

VS Code extension that changes the built-in markdown preview to match Github's styling
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-preview-github-styles
MIT License
303 stars 57 forks source link

YAML front matters are not rendered correctly #23

Closed karol-majewski closed 5 years ago

karol-majewski commented 6 years ago

Hello and thank you for your work. The issue that I'd like to report has to do with these little snippets located at the top of Markdown files:

---
Name: John
Surname: Doe
---

The way GitHub renders them:

image

The way Code does:

image

As you can see, the ___ is recognized as a line break prematurely.

YuilTripathee commented 6 years ago

same issue here

mjbvz commented 5 years ago

For anyone interested in contributing, this plugin may do the job https://www.npmjs.com/package/markdown-it-github-preamble

Here's how it can be contributed: https://code.visualstudio.com/docs/extensionAPI/api-markdown

karol-majewski commented 5 years ago

@mjbvz Would you rather like it to become a part of this repository or to exist as a separate extension?

mjbvz commented 5 years ago

I just published an extension that adds this: https://marketplace.visualstudio.com/items?itemName=bierner.markdown-yaml-preamble

Currently shipped as its own extension. May consider bundling it as an extension dependency in the future