Comments (8)
I've been having the opposite error. Commenting here in case it's related. (Is it?)
The following code...
{{ define "main" }}
<main style="max-width: 960px">
{{ .Content }}
</main>
{{ end }}
...formats to this:
{{ define "main" }}
<main style="max-width: 960px"
{{ .Content }}
</main
{{ end }}
The closing bracket >
is stripped off from the open and closing <main>...</main>
tag.
from prettier-plugin-go-template.
If this is not working for you, please re-open this issue ๐
from prettier-plugin-go-template.
npm has beta 8 @andreseduardop
https://www.npmjs.com/package/prettier-plugin-go-template/v/0.0.11-beta.8
i just checked again. plus this repo has no release, no tag, and no branch identified with a beta 9.
from prettier-plugin-go-template.
I have tried again, using Beta version 5.
npm install --save-dev [email protected]
But, now Prettier reports in the console the error "Prettier process finished with exit code 2."
This is the complete console output:
output-console-beta-5.txt
The beta 5 test project:
test-project-beta-5.zip
from prettier-plugin-go-template.
Both of the cases should be resolved with [email protected]
๐งผ
from prettier-plugin-go-template.
Thanks, @NiklasPor
I am trying to install beta 9, with:
npm install --save-dev [email protected]
But I get:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
from prettier-plugin-go-template.
Sorry, I accidentally only published it to my local registry. Should be available now ๐
from prettier-plugin-go-template.
as are beta11 and beta13 for the record
from prettier-plugin-go-template.
Related Issues (20)
- Can't make it work in VSCode on gohtml with pnpm HOT 1
- Unintended whitespace is inserted into the value of an HTML attribute
- Upgrade prettier peer dependency to `^3.0.0` HOT 3
- Closing tag is spit on log tags and log lines HOT 2
- Nvim support check HOT 1
- support for Templ files HOT 2
- .prettierrc format problem in documentation HOT 2
- Unable to remove extra spaces
- Converts `DOCTYPE` to lowercase `doctype`
- Make this a stand alone vscode extension
- Error - Found invalid node block HOT 5
- Formatting fails for HTML custom elements HOT 5
- Error thrown when formatting dynamic HTML tag like `<h{{ .Level }}></h{{ .Level }}>`
- prettier print/embed are async now
- Lines containing variable definitions cause double-empty lines HOT 2
- confused by multiline comments containing syntax HOT 1
- prettier-ignore comments don't work for html fragments HOT 3
- fails on html tags using if/else HOT 2
- Migrate to Prettier v3 HOT 2
- Use With Pre-commit hooks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-go-template.