razziel89 / mdslw Goto Github PK
View Code? Open in Web Editor NEWPrepare your markdown for easy diff'ing!
License: GNU General Public License v3.0
Prepare your markdown for easy diff'ing!
License: GNU General Public License v3.0
In case a file differs from the desired state, it could be useful to provide more information about the deviation. That way, mdslw
could possibly even serve as a linter that could be hooked into a general purpose language server such as efm-langserver. The similar crate could be used to compute a diff. Since such a computation can be costly, it should only be done if explicitly requested.
Many Some markdown extensions appear to work the following way:
In the example of definition lists, the first line is simply unindented text while the second line may have some indentation and has a colon as a prefix character.
Such extensions could be supported by adding a generic struct that contains all that logic. It basically detects the markdown covered by the extension and extracts the basic markdown contained within. Then, that extracted markdown, with a reduced maximum line width due to the indentation, can be formatted in the usual way.
Currently, definition lists get mangled by mdslw
.
I realize, that there are a lot of markdown extensions out there, but I could not find an explicit statement about scope in the README.md (CommonMark?).
Is this a bug or a feature :) ?
At the moment, the --features
flag serves as a bit of a dumping ground for new functionality that may or may not be useful. Those --features
that are unused or not useful should be removed while those --features
that are use and useful should be converted into something more permanent. They could be converted into their own command line flags, for example.
If you are a user of mdslw
and find specific features useful, please comment on this issue, naming those useful --features
. At the moment, more or less all --features
are up for removal.
Hello,
it seems that mdslw
formats frontmatter as well in some cases. An example:
---
item1: hello
item2:
- my
- list
---
mdslw
should not change this, but when run, it yields:
---
item1:
hello item2:
- my
- list
---
It would be desirable to support something similar to a .prettierrc
file, maybe calling it mdslw.yaml
, that can be used to configure mdslw
in a hierarchical way. That is, each such file influences how mdslw
behaves for all files below it in the file tree. If there are two config files above a markdown file, then the closer one will overwrite options in the one farther away. The precedence of config files lies above that of default values and below that of environment variables.
It would be useful if clap
supported such layered/hierarchical config files, but it does not at the moment, cf. this discussion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.