Skip to content

Access another content file from transformer #3236

@Mw3y

Description

@Mw3y

Is your feature request related to a problem? Please describe

I'm building a nuxt/content module for latex. I currently use a vue component for commands such as \include which simply calls my content renderer. But, I believe this is not the correct way to do it since any context from the parent file is lost, i.e: custom macro definitions.

Describe the solution you'd like

I'd like to be able to access another content file by relative path, directly from the transformer. This way, I can incorporate it in the parent latex file AST.

Describe alternatives you've considered

I considered giving the custom macros context to the child file but I believe this is more complicated an inneficient.

Additional context

None

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