Skip to content

chunk option to include link to src for ojs imports #268

@zac-garland

Description

@zac-garland

is there a way to include the ojs src link post-import?

//| include_source: true
//| source_caption: 'caption'
import {ToolsImage} from "@observablehq/state-of-dataviz-2021"
ToolsImage

resulting in something like

//| quasi-engine: pug
.code-src
   a(href='obs/...') caption

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestojs-engineIssues with the ojs engine

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions