mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
added a new property to the render context: the file path the call originates from
This commit is contained in:
parent
4f9d04200e
commit
30ec0b5cdd
2 changed files with 4 additions and 2 deletions
|
|
@ -73,7 +73,8 @@ export class CodeblockProcessor extends MarkdownRenderChild {
|
|||
.prepareRender(
|
||||
results.renderer.type.toLowerCase(), results.renderer.options
|
||||
)(rendererEl, {
|
||||
cellParser: this.plugin.cellParser
|
||||
cellParser: this.plugin.cellParser,
|
||||
sourcePath: this.ctx.sourcePath
|
||||
})
|
||||
|
||||
// FIXME: probably should save the one before transform and perform transform every time we execute it.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ export interface DataFormat {
|
|||
}
|
||||
|
||||
export interface RendererContext {
|
||||
cellParser: ModernCellParser
|
||||
cellParser: ModernCellParser,
|
||||
sourcePath: string
|
||||
}
|
||||
|
||||
export interface RenderReturn {
|
||||
|
|
|
|||
Loading…
Reference in a new issue