Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Add option to skip Liquid tags and content wrapped by them #1067

Open
xplosionmind opened this issue Apr 5, 2024 · 2 comments
Open

FR: Add option to skip Liquid tags and content wrapped by them #1067

xplosionmind opened this issue Apr 5, 2024 · 2 comments
Labels
rule suggestion Suggestion to add or edit a rule

Comments

@xplosionmind
Copy link

xplosionmind commented Apr 5, 2024

Is Your Feature Request Related to a Problem? Please Describe.

I use Eleventy to publish what I write/edit in Obsidian. Sometimes, Markdown linting breaks Liquid tags and/or the content inside them.

Describe the Solution You'd Like

Give two opt-in choices to users:

  • Skip what is between {% %} and {{ }} tags
  • Allow users to choose closing and ending tags to pinpoint what blocks to exclude. In the example below, the opening tag would be {% renderTemplate "md" %}, and the closing tag would be {% endrenderTemplate "md" %}.

Please include an example where applicable:

{% renderTemplate "md" %}
  <h1>{{ something }}</h1>
{% endrenderTemplate "md" %}

(Original text = expected outcome, because it should be skipped)

@xplosionmind xplosionmind added the rule suggestion Suggestion to add or edit a rule label Apr 5, 2024
@pjkaufman
Copy link
Collaborator

Hey @xplosionmind . Out of curiosity, have you already tried using the range ignore syntax for this?

@xplosionmind
Copy link
Author

Hi @pjkaufman, thanks for your reply!

have you already tried using the range ignore syntax for this?

I did not know about this! For sure it can be a nice workaround, but providing an option specific for custom tags to be ignored would be much more convenient, without having to type <!-- linter-disable --> many times in many files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule suggestion Suggestion to add or edit a rule
Projects
None yet
Development

No branches or pull requests

2 participants