vincode-io/Zavala

Ability to render Code/Monospace text

Opened this issue · 2 comments

Hi @vincode-io,

Would it be possible to have a code block rendered or maybe as inline code?
This would then make Zavala a great notebook for coders.

wbr,
Pramod

That is something I would like as well. Look for it in a future release.

For my use case, it would be helpful if a Code/Monospace text format leaves the asterisks and underscores "as-is". i.e. does not escape the individual asterisk by \* and underscore characters by \_ on export & import within the Code/Monospace formatted portions.

Potentially, the ` backtick inline code syntax and ``` fenced code syntax could be used to deliniate the beginning and end of Code/Monospace formatted portions. This syntax is a commonly used Markdown extension (based on a Markdown CLI Evaluation).

Example import/export note text with Code/Monospace portions:

The variable `CMAKE_BUILD_TYPE` is used here:

```
cmake -D CMAKE_INSTALL_PREFIX=/opt/opencv/4.8.0_test \
      -D BUILD_TESTS=ON \
      -D CMAKE_BUILD_TYPE=RELEASE
```

And, note that `2 * 5 * 7 = 70` is basic arithmetic.

… would look like the following when rendered in the app:

The variable CMAKE_BUILD_TYPE is used here:

cmake -D CMAKE_INSTALL_PREFIX=/opt/opencv/4.8.0_test \
      -D BUILD_TESTS=ON \
      -D CMAKE_BUILD_TYPE=RELEASE

And, note that 2 * 5 * 7 = 70 is basic arithmetic.