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

Create context for rules #20

Open
fanny opened this issue Nov 11, 2020 · 0 comments
Open

Create context for rules #20

fanny opened this issue Nov 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@fanny
Copy link
Collaborator

fanny commented Nov 11, 2020

Describe this feature
I think that would be great for moenda the addition of a context, some informations can be useful to manipulate and facilitate the creation of new rules, usually this is made by a context. For example, we already have two rules that manipulates sections in markdown files, another system analyzing a markdown file might think that is also useful to understand the sections of the files, but with custom rules, providing informations about sections could be useful in this scenario.

Why I need this feature?
Facilitate the process of creation of new rules

How should we implement it?

  • Parse the markdown file looking to sections, texts and other types of formations available in markdown
  • Return the info as an array of objects like:
    [{'type': 'section', 'value': 1}, {'type': 'text', 'value': "algo algo algo"},{'type': 'section', 'value': 2}]
@fanny fanny added the enhancement New feature or request label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant