🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

prettier-plugin-marko

Package Overview
Dependencies
Maintainers
7
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-marko

A prettier plugin for parsing and printing Marko files

Source
npmnpm
Version
4.0.9
Version published
Weekly downloads
2.9K
-32.55%
Maintainers
7
Weekly downloads
 
Created
Source


prettier-plugin-marko
TypeScript Styled with prettier Build status NPM Version Downloads

Note: For prettier@2 or below use prettier-plugin-marko@2.

A Prettier plugin for parsing and printing Marko files.

Installation

npm

npm install prettier prettier-plugin-marko -D

Usage

See the Prettier "using plugins" guide.

npm exec -- prettier --write "**/*.marko" --plugin=prettier-plugin-marko

Or via prettier configuration like:

{
  "plugins": ["prettier-plugin-marko"]
}

Editors

Editors such as VSCode provide plugins for calling Prettier directly from your editor.

Options

On top of Prettier's options, there are a few additional options picked up by this plugin.

markoSyntax: "auto" | "html" | "concise"

Marko supports both an html like and concise syntaxes. By default this plugin will try to detect the syntax you are already using and output a formatted document in that syntax.

You can overide the default ("auto") to enforce that all templates are formatted to the syntax of your choosing.

Code of Conduct

This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.

Keywords

format

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts