Skip to content

adapt/change syntax to Import Code Snippets #1474

Open
@timaschew

Description

@timaschew

Feature request

What problem does this feature solve?

Align syntax to include snippets

What does the proposed API look like?

Ideally a syntax which is similar to the syntax to include markdown files.
Ideally the syntax works with a normal markdown parser, so it renders a link to the file which should be embedded.

For instance: [!include](fixtures/test.js)

Similar what is used for Azure Docs if you spot the [!INCLUDE cloud-shell-try-it.md] line

I know there is already an issue to support markers, but maybe this plugin for GitBook gives some insights and more options or implementation details:
https://plugins.gitbook.com/plugin/include-codeblock

How should this be implemented in your opinion?

I don't know

Are you willing to work on this yourself?**

Yes

Probably related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions