dotnet / dotnet/docfx

Feature request: Parameterized file inclusion

Open
#5,402 1 comment 1 reaction 0 assignees View on GitHub
markdown
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

For a project I'm currently working on, I want to include a table on many pages, somewhat in the vein of [infoboxes](https://en.wikipedia.org/wiki/Help:Infobox). Copying and pasting the markup for this is a significant maintenance burden. As a contrived example, it would be nice if I could do something like:

```text
[!include[infobox](infobox.md :
name='foo'
desc='bar'
image='baz.png'
)]
```

With `infobox.md` looking like:

```markdown


${name}

${name}
${desc}


```

I wouldn't particularly care what the syntax looks like; this is just a straw man. It would be good to be able to place the attribute assignments on separate lines for readability, though, since some of them might be long.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.