Transclusion of Metadata
CompletedWasn't sure if this is a feature request or just general, so I'm posting here.
By design, file transclusion does not include metadata in the file being inserted in MMD, but it would be nice to have an option to include metadata.
The use case I envision is having a file with the metadata to pickup code highlighting. If I could use file transclusion then I'd just have to point to the file with the metadata without having to copy/paste the metadata into the file with the fenced code I want highlighted. I can see the possibility of having a lot of metadata boilerplate that I could pick and chose what I wanted to use via transclusion.
Maybe this doesn't belong to nvUltra, but since I know the developer of MMD is listening, I have to speak up here. This may require a change to MMD to allow.
And I know that extensions built into Composer and nvU are an option to blunt the copy/paste comment, but both clutter the source file in a way that transclusion does not.
-
MMD Metadata is at the top of a file. Transclusion simply makes one big file from smaller files. So the only metadata that is *actually* metadata is the "wrapper" or "parent" file.
Metadata included in a transcluded file is removed because it wouldn't make sense for it to appear in the middle of your document, but it isn't used because it is overridden by the "master metadata".
The only exception to this is the `transclude base` metadata which temporarily effects where MMD looks for new files, since files may be located in different folders.
For the use case you describe, I recommend creating a mmd boilerplate that simply goes in all files. I do this with the MMD user's guide.
0
Please sign in to leave a comment.
Comments
1 comment