Sometimes, we copy a part of a note into another Note. Admittedly, Internal Links with header support greatly reduced the problem. However, sometimes you just want contents instead of a file with dozens of links.
I want a way, IN ADDITION to internal links, to insert a section of one note into another.
Just as what #include
does in c++ and various other languages.
For example, a file look like this
# Remarks & Caveats in cpp
---
## include guard
```cpp
#pragma once
//declaration
` `` // to put markdown in markdown you know
is not in CPP standard
use
```cpp
#ifndef HEADER_FILE_NAME
#define HEADER_FILE_NAME
// declaration
#endif
` ``
instead
---
Could be written as
# Remarks & Caveats in cpp
---
?[[2020-06-24-CS32-Class-Note##Include guard]]
---
Also, a more advanced feature would be matching header levels.
In case in file 2020-06-24-CS32-Class-Note
Include guard
is actually a 3rd level header, maybe a syntax of remapping the headers should be included.
like this:
# Remarks & Caveats in cpp
---
?[[2020-06-24-CS32-Class-Note###Include guard##]]
---
As of syntax, I suggest:
?[[File###h3##]]
Component | Meaning |
---|---|
?[[ | start of insertion |
File | filename/name of note |
### | original header level (3) |
h3 | original header name |
## | after header level (2) (optional) |
]] | end |
which would produce
##h3
Content of h3