Skip to content

Don't search for tags within code blocks #106

@jayemar

Description

@jayemar

If a note has a code block that includes words preceded by octothorpes, they're currently recognized as tags by obsidian.el, but they shouldn't be. For example, in the following snippet of arduino code, ifndef, define, and endif will all be incorrectly recognized as tags.

#ifndef LED_BUILTIN
#define LED_BUILTIN 13
#endif

pinMode(LED_BUILTIN, OUTPUT);

Obsidian does not recognize these as tags and so therefore neither should we.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions