Skip to content

[FEATURE] Load Other files Code-block #434

Description

@sysyss

Idea
load argument. Load other file and run that files pre/post code-block run also can import that file as work.
import agument. work with other files directory

Example

```python {pre}
--do pre
```

```python {label='test_i'}
--do test_i
```

```python {label='test_s'}
--do test_s
```

Pre.md File

 ```python {load=['Pre.md']}
--this run Pre.md's `pre` or `post` and can 'import' in Pre.md
 ```  

 ```python {load=['Pre.md'], import=[ 'test_i']}
--so this is work 
 ```  

```python{import=['Pre.md/'test_i'']}
--this `import` 'Pre.md/test_i' without load 'Pre.md'
```

```python{import=['Pre.md/'test_i'','test_s']}
-- so this is not work 
```

otherFile

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions