Skip to content

Allow specifying which directive names are processed #29

Closed

Description

@stephenlrandall

Initial checklist

Problem

As seen in #26, sometimes you have text that simply isn't meant to be processed as a directive. This seems mainly to be a problem with textDirective nodes, since -- like other inline Markdown -- there's no requirement for the directive to begin with a non-word character. So you often have things like "I departed at 10:30am", which gets processed unintentionally.

Current solutions

I wrote my own plugin that runs after remark-directive that attempts to restore unintentional textDirective nodes to plain text, although this isn't perfect since it can't exactly reproduce the attributes input.

Proposed solutions

A plugin option that allows a user to specify which directive types should be processed versus left as plain text.

Activity

  1. added
    👋 phase/newPost is being triaged automatically
    🤞 phase/openPost is being triaged manually
    and removed
    👋 phase/newPost is being triaged automatically
    on Mar 15, 2026
  2. stephenlrandall commented on Mar 15, 2026

    @stephenlrandall
    Author

    I am also happy to submit a PR for this if pointed at the right packages to submit the PRs for.

  3. changed the title [-]Allow specifying particular directive names to include/exclude[/-] [+]Allow specifying which directive names are processed[/+] on Mar 15, 2026
  4. stephenlrandall commented on May 5, 2026

    @stephenlrandall
    Author

    Read through the closed issues and saw the discussion around text directives and not wanting to support anything beyond telling authors to escape colons. Not a dream workaround, but simply undoing the processing for unrecognized directives is a fine-enough solution for me, and that can happen in a separate plugin. Closing.

  5. github-actions commented on May 5, 2026

    @github-actions

    Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

  6. wooorm commented on Jun 3, 2026

    @wooorm
    Member

    the conclusion of the threads should be: a solution that works for non-English languages, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions