Helvetica is based on the original Helvetica template by iA. The original template is barely touched; it only extends its functionality by code highlighting using highlight.js
and includes mermaid diagrams using mermaid.js
.
- Download the source code from the release page.
- Extract the archive.
- Follow the install instructions.
highlight.js
tries to detect the language automaticly. If automatic detection does not work for you, you can specify the language yourself:
```python
def greet():
print('Hello World!')
```
You can diasable code highlight using the nohighlight
specifier:
```nohighlight
This text will not be highlighted.
```
Mermaid diagrams can be created by using a <mermaid-js></mermaid-js>
-element:
<mermaid-js>
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
</mermaid-js>
It also can be styled like any other html element:
<mermaid-js style="text-align: right;">
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
</mermaid-js>
Using this template can reduce the performance of iA Writer.