Skip to content

add support for attribute {.scala} to verbatim text #11014

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

Open
michelou opened this issue Jan 6, 2021 · 1 comment
Open

add support for attribute {.scala} to verbatim text #11014

michelou opened this issue Jan 6, 2021 · 1 comment

Comments

@michelou
Copy link
Contributor

michelou commented Jan 6, 2021

@abgruszecki Scala3doc currently supports the following Markdown syntax for code blocks :

```scala
val x = 1
```

Can you please validate that Scala3doc does also support the following two Markdown syntaxes (see discussion in PR #10953) ?

  1. Code block with attribute {.scala}, for instance :
```{.scala}
val x = 1
```
  1. Verbatim text with attribute {.scala}, for instance :
Given the dedinition `val x = 1`{.scala}

Goal: display the same Scala syntax hightlighting both in code blocks and in verbatim texts.

@abgruszecki
Copy link
Contributor

I agree it'd be useful for inline monospace and code blocks to have the same support for highlighting. We probably should take a look at some extensions to Markdown that support that sort of syntax.

/cc @romanowski

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

No branches or pull requests

3 participants