Comments (4)
From what I can tell on my phone right now, that behavior changed in 2021 as part of the move to VS Code's file system wrapper. All file system access should go through that (it's necessary for remote scenarios) and the wrapper may not have access to the user's home directory. I'll need to experiment to see if this could be made to work opportunistically.
from vscode-markdownlint.
Closing this issue as the original documentation topic was addressed. I've updated the README for the second issue raised to clarify the current (since 2021) behavior of the extension.
from vscode-markdownlint.
Direct link: https://github.com/DavidAnson/markdownlint-cli2?tab=readme-ov-file#configuration
For the most part, I try not to duplicate documentation at the extension level, so for things like this I want people to look at the underlying source.
I will be removing that extension configuration entirely in the next release.
from vscode-markdownlint.
@DavidAnson, thanks for your response - the information really is there in the READMEs of the projects.
Yet, I would have another question: While creating e.g. .markdownlint-cli2.yaml
in a project folder does work, it seems impossible to have it defined globally (as discussed at #279), which I think is a bit unfortunate and seems to be contrary to what is written in the README of this project:
Note: When no folder is open, configuration and options are loaded from the user's home directory (e.g.,
%USERPROFILE%
on Windows or$HOME
on macOS/Linux).
Because JavaScript code is cached after being loaded, edits to.markdownlint.cjs
/.markdownlint.mjs
/.markdownlint-cli2.cjs
/.markdownlint-cli2.mjs
require a restart of VS Code.
Note that I have even intentionally tried with not having any folder/workspace open in VS Code, yet the files in my user home got ignored when editing a .md file.
Here is a sample .markdownlint-cli2.yaml
which is honored when in a project folder, but not when in my user home:
ignores:
- "**/README.md"
config:
"MD013": true
from vscode-markdownlint.
Related Issues (20)
- ро
- рои
- мир и
- Influenced by this extension, User Settings.json the whole file loses hover information HOT 3
- Markdown lint errors when opening Codespaces HOT 2
- How to disable some rules for glob pattern? HOT 4
- Disable Extension HOT 5
- Formatter functionality: adjust table size to its content HOT 1
- could you please add a feature to add the 2 space at the end of each line if not given by default. HOT 5
- Unable to disable MD025 HOT 8
- MD029 false positive with display math HOT 2
- Allow the extends configuration to use remote files HOT 2
- Closed File Violations Stay in Problems Pane HOT 5
- Include custom rules in extension HOT 7
- Possible to ignore line length for paragraphs? HOT 4
- Feature request: ignore specific files HOT 1
- feat: Can we update support for multiple languages? HOT 6
- Table row+ removed row HOT 2
- Unordered list is using asterisks but linter says dash is present. HOT 1
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 vscode-markdownlint.