Skip to content

File-scoped namespacing for code block identifiers #73

@SamDuffield

Description

@SamDuffield

When using entangled with multiple markdown files that generate separate output files, I believe all code block identifiers share a global namespace? This means that common identifier names cannot be reused across different markdown files without causing code blocks to be mixed together in the generated output.

For example, if I have:
example1.md → generates example1.py
example2.md → generates example2.py

And both files have labelled #imports code blocks then both python files will have both #imports blocks. But I'd like them to only have their own one.

My current workaround is prefixing the code block names but I wonder if there's something more robust already supported? Or could be supported in future?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions