Skip to content

Commit

Permalink
Update the examples too
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Apr 9, 2024
1 parent 7da2410 commit 86b721c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rfcs/configure-file-name-from-block-meta.md
Expand Up @@ -18,11 +18,11 @@ Short of hardcoding overrides or disabling the lint rule in the file, there is n

## Detailed Design

This RFC proposes that code blocks be allowed to specify a file path in `meta` with `title="..."`.
This RFC proposes that code blocks be allowed to specify a file path in `meta` with `filename="..."`.
Doing so would replace the `filename` provided by `eslint-plugin-markdown`'s `preprocess` method.

````md
```json title="package.json"
```json filename="package.json"
{}
```
````
Expand Down Expand Up @@ -54,11 +54,11 @@ For example, given three blocks with the same name, would in order become:
Alternately, if multiple code blocks require the same _file_ name, developers can give different _directory paths_ to ensure uniqueness:

````md
```json title="example-1/package.json"
```json filename="example-1/package.json"
{}
```

```json title="example-2/package.json"
```json filename="example-2/package.json"
{}
```
````
Expand Down

0 comments on commit 86b721c

Please sign in to comment.