Giter Site home page Giter Site logo

vscode-remark's Introduction

vscode-remark

Beautify markdown code with Remark.

vscode-remark

Install

  • Press F1 and select Extensions: Install Extensions.
  • Search for and select remark.

See the extension installation guide for details.

Usage

  • You can use global keyboard shortcut ALT+SHIFT+F or right-click context menu Format code.
  • Or press F1 and run the command named Remark: Beautify markdown code.

Supported languages

  • Markdown

Supported settings

remark.format

  • Type: Object
  • Default: {}

Plugin configuration.

remark.format.plugins

  • Type: Array
  • Default: []
  • Example: ["github", "first-heading"]

A list globally or locally installed plugins that will be used with Remark (without remark- prefix).

See remark/plugins.

About first run with this option

When you first run the plugin is looking for an installed plugins. Therefore, the first run may take a long time. Subsequent runs are much faster.

remark.format.rules

  • Type: Object
  • Default: {}
  • Example: { "closeAtx": true }

Remark formatter rules.

See remark/options or use intellisense in VS Code:

2016-09-25_14-47-36

remark.format.plugin-name-without-prefix

  • Type: Object
  • Default: null
  • Example: "github": { "repository": "https://github.com/mmrlnc/vscode-remark" }

Configurations for plugins, if they are needed.

About error handling

Unfortunately, some plugins do not give correct errors. So when you see the following error (see image), then most likely a bug in the wrong settings of any of the plugins.

{
	"remark.format": {
		"plugins": [
			"first-heading"
		],
		"first-heading": {
			"heading": 123
		}
	}
}

image

Many plugins correctly give an error. For example:

{
	"remark.format": {
		"plugins": [
			"github"
		]
	}
}

image

Therefore, if you are experiencing problems with this extension, please create issue on GitHub repository.

Tip

You can see a detailed error report in the Developer Tools (Help -> Toggle Developer Tools). Please do not forget to attach it to your issue.

Keyboard shortcuts

For changes keyboard shortcuts, create a new rule in File -> Preferences -> Keyboard Shortcuts:

{
  "key": "ctrl+shift+c",
  "command": "remark.reformat"
}

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

vscode-remark's People

Contributors

mrmlnc avatar tengattack avatar

Watchers

James Cloos avatar  avatar  avatar

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.