mattjennings / mdsvexamples

Render your Svelte code blocks in MDSveX
31 stars 2 forks source link

feat: filename in meta #23

Closed jjagielka closed 11 months ago

jjagielka commented 1 year ago

Would it be possible to add to meta the currently processed file name? I would be able, for example, to add links to GitHub directing straight to the file.

{
  "Wrapper": "/src/routes/utils/ExampleWrapper.svelte",
  "example": true,
  "file": "/src/pages/my_component_doc.md"
}
mattjennings commented 11 months ago

@jjagielka sorry for the late response on this. I've added this as filename and it'll be available in 0.4.0 which I plan to publish today

https://github.com/mattjennings/mdsvexamples/pull/27