Skip to content

Create context for rules #20

@fanny

Description

@fanny

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}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions