Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to render Code/Monospace text #198

Open
pramjan opened this issue Feb 3, 2023 · 2 comments
Open

Ability to render Code/Monospace text #198

pramjan opened this issue Feb 3, 2023 · 2 comments

Comments

@pramjan
Copy link

pramjan commented Feb 3, 2023

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

@vincode-io
Copy link
Owner

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

@marc-medley
Copy link

marc-medley commented Sep 25, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants