File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 4
4
markdown="1"
5
5
style="display:{{ include.display }}"
6
6
>
7
+ {% if tab.content_md %}
8
+ {% include_relative tabbed_content/{{ tab.content_md }} %}
9
+ {% endif %}
7
10
{% if tab.code_content %}
8
11
```{% if tab.language %}{{ tab.language }}{% endif %}
9
12
{{ tab.code_content }}```
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ hello-world-tablist:
11
11
can add text that is also formatted in **markdown**.
12
12
You can add [links](https://qiujames.github.io/) or even images!
13
13

14
+ - title : Another Markdown
15
+ content_md : code.md
14
16
- title : Java
15
17
language : java
16
18
code_content : |
@@ -131,6 +133,7 @@ tablist:
131
133
- title : Java...
132
134
` ` `
133
135
136
+
134
137
Indentation matters! The YAML Front Matter expects
135
138
one level of indentation after the ` |` character
136
139
(to indicate multiline front matter content).
Original file line number Diff line number Diff line change
1
+ ``` python
2
+ print (" Python Code from Another Markdown File :)" );
3
+ ```
4
+
5
+ You can add markdown content through a specified file now!
6
+
7
+ Since the {% raw %}` {% include %} ` {% endraw %} tag
8
+ oesn't go through the necessary liquid front matter
9
+ preprocessing that Jekyll normally does, nested
10
+ tab lists aren't supported.
11
+
12
+ Here's what the code.md that's generating this text looks like (kinda meta!)
13
+
14
+ ~~~ md
15
+ # code.md
16
+
17
+ ```python
18
+ print("Python Code from Another Markdown File :)");
19
+ ```
20
+
21
+ You can add markdown content through a specified file now!
22
+
23
+ Since the {% raw %}`{% include %}`{% endraw %} tag
24
+ oesn't go through the necessary liquid front matter
25
+ preprocessing that Jekyll normally does, nested
26
+ tab lists aren't supported.
27
+
28
+ Here's what the code.md that's generating this text looks like (kinda meta!)
29
+ ~~~
You can’t perform that action at this time.
0 commit comments