Skip to content

[QUESTION] - Markdown square-bracket links #632

Description

@Michota

Am I doing something wrong, or the parser simply does not support the inner links ([[filename]]) syntax?
If I understand correctly, the ExpansiMark does in fact follow this syntax, right? That's how I understand this regex:

const MARKDOWN_LINK_REGEX = new RegExp(`\\[([^\\][]*(?:\\[[^\\][]*][^\\][]*)*)]\\(${UrlPatterns.MARKDOWN_URL_REGEX}\\)(?![^<]*(<\\/pre>|<\\/code>))`, 'gi');

If not, can I implement this function by modyfing parseExpensiMark.ts, or do I need to dig under the hood, in the ExpansiMark itself?

Is there any tutorial or documentation article which would guide me how to add custom syntaxes for markdown?

Activity

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions