Code Monkey home page Code Monkey logo

proselint's People

Contributors

jdkato avatar kai687 avatar wren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

proselint's Issues

DateCase mistakenly matches uppercase AM/PM

Timestamps with uppercase AM/PM are matching this rule (which seems intended for lowercase letters).

Example:

$ vale <(echo '2022-10-27 05:34:32 PM')

 /dev/fd/14
 1:18  error  With lowercase letters, the     proselint.DateCase
              periods are standard.

โœ– 1 error, 0 warnings and 0 suggestions in 1 file.

Override Hyperbole

Hi,
my markdown code contains some syntaxes like :

!!! important
    the important text

that is seen as hyperbolic syntax like "it's so cool!!!"
But it's not the case, it's a false positive as this is the syntax for Admonition plugin https://squidfunk.github.io/mkdocs-material/extensions/admonition/ that I would like Vale not to consider as an issue.
I tried overriding the Hyperbole file:

extends: existence
message: "'%s' is hyperbolic."
level: error
nonword: true
tokens:
  - '[a-z]*[!]{2,}'
  - '[a-z]*\?{2,}'

but I can't find a way to write the tokens regex to prevent matching my specific syntax. I tried things like [a-z]+[!]{2,} or [\w ]+[!]{2,} that works when I test them in other regexp testers but Vale always take my Admonition markers in account and raises errors.
Any idea?
Thanks.

proselint.DateCase: false positive

The text (address) "1600 Amphitheatre Pkwy, Mountain View, CA 94043" is reporting the following error:

 1:3  error  With lowercase letters, the     proselint.DateCase 
             periods are standard.                             

It's due to 1600 Amphitheatre, that matches \d{1,2} ?[ap]m. That's not intended, is it? :)

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.