GithubHelp home page GithubHelp logo

mjbvz / vscode-markdown-yaml-preamble Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 1.05 MB

Makes yaml front matter render as a table in VS Code's built-in markdown preview:

License: MIT License

JavaScript 92.71% TypeScript 7.29%

vscode-markdown-yaml-preamble's People

Contributors

mjbvz avatar paw-lu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

paw-lu

vscode-markdown-yaml-preamble's Issues

Left to Right Direction?

Thanks for this extension! Currently the field-value pairs are in the top to bottom direction, which causes many visual problems when there are many fields and long-text values.

image

Maybe add an option to render the front matter left to right? Just like how they present in the editor.

Many null values render as blank instead of `null`

---
key1:
key2: null # Presumably showing `null` and not a string `!!str null`.
key3:

key4:
-
key5:
- ~
key6:
- null
---

Content...

Only keys 1, 2, and 3 show as null in Markdown preview front matter. The rest show as a blank value when in fact they are also null (ref).

Thanks.

Markdown yaml Preamble 0.1.0
VS Codium 1.77.3

interferes with "scrollPreviewWithEditor"

I have the following in user settings:

{
    "markdown.preview.scrollEditorWithPreview": false,
    "markdown.preview.scrollPreviewWithEditor": true,
}

With this extension loaded, the scrolling often gets "stuck" on a table or HR... for example I'm several hundred lines down in a Markdown file, but I have

***

between the header and body (at line 15 of the file, many screen heights above where I'm editing), the preview auto-scrolls to the first thing under that HR instead of the part of the file I'm editing... if I disable this extension, I get the expected behavior where the first line of the preview stays in sync with the first line of the editor

Three dots as valid YAML end

I have markdown files in which the YAML block is terminated by three dots and not three dashes. Is it possible to add this (valid) block end indicator to the extension?
Thanks!
An example:

---
pagetitle: Persistent Identifiers
author: Myself 
lang: en
...

# Persistent Identifiers
Bla bla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.