Nested admonitions #2469
-
Hi. I want to create admonitions inside lists. If the admonitions aren't properly indented the numbering of the lists is restarted after each admonition. When I have successfully indented the admonitions to be part of the lists, the numbering has worked out the way it should. However, I've recently lost the "magic" and when indenting admonitions now, they aren't properly rendered, and so only the markdown is displayed in the webpage. I have all the extensions installed (admonition and more). I also tried adding the admonition as a snippet, but it still renders incorrectly when indented. Example using snippet:## Deploy the agent
!!! note
Lightrun currently supports Java applications.
Once you've deployed the agent, you should add it to your application as follows:
1. From the application server, navigate to the folder where your application resides.
2. Copy the following code:
``` {.bash} java -agentpath:/path/to/agent/lightrun_agent.so RestOfTheArgumentsHere
```
--8<-- "docs/install-note.md"
3. Replace the `agentpath` value with the path to the Lightrun agent where you downloaded it and replace `RestOfTheArgumentsHere` with the name of your application and then run the command.
OR
Add the `JAVA_OPTS` environment variable to the server so that all Java processes launched on that server have an agent attached.
Copy the following command from the server and replace the `agentpath` value with the path to the Lightrun agent where you downloaded it: `#!python {.bash} export JAVA_OPTS=-agentpath:/path/to/agent/lightrun_agent.so`
Once an agent is up and running, you can [install the IntelliJ plugin](install-client.md) and you can invite users to join you. Example using admonition:## Deploy the agent
!!! note
Lightrun currently supports Java applications.
Once you've deployed the agent, you should add it to your application as follows:
1. From the application server, navigate to the folder where your application resides.
2. Copy the following code:
``` {.bash} java -agentpath:/path/to/agent/lightrun_agent.so RestOfTheArgumentsHere
```
!!! note
Be sure to change the port number if you changed the configuration from your docker-compose file. SSL certificates can be applied to domains only. Therefore, the page loads with an HTTPS warning.
3. Replace the `agentpath` value with the path to the Lightrun agent where you downloaded it and replace `RestOfTheArgumentsHere` with the name of your application and then run the command.
OR
Add the `JAVA_OPTS` environment variable to the server so that all Java processes launched on that server have an agent attached.
Copy the following command from the server and replace the `agentpath` value with the path to the Lightrun agent where you downloaded it: `#!python {.bash} export JAVA_OPTS=-agentpath:/path/to/agent/lightrun_agent.so`
Once an agent is up and running, you can [install the IntelliJ plugin](install-client.md) and you can invite users to join you. The rendered page:As you can see in the rendered page, admonitions that are not indented DO work. EDIT by @squidfunk: formatting code examples |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Do you have SuperFences enabled? |
Beta Was this translation helpful? Give feedback.
-
I formatted your original examples to use code blocks, which makes the issue apparent: ``` {.bash} java -agentpath:/path/to/agent/lightrun_agent.so RestOfTheArgumentsHere
``` You're mixing tabs and whitespace for indentation. You should use the same amount of spaces. Furthermore, the list is also not correctly indented. This should work: ## Deploy the agent
!!! note
Lightrun currently supports Java applications.
Once you've deployed the agent, you should add it to your application as follows:
1. From the application server, navigate to the folder where your application resides.
2. Copy the following code:
``` {.bash} java -agentpath:/path/to/agent/lightrun_agent.so RestOfTheArgumentsHere
```
--8<-- "docs/install-note.md" |
Beta Was this translation helpful? Give feedback.
I formatted your original examples to use code blocks, which makes the issue apparent:
You're mixing tabs and whitespace for indentation. You should use the same amount of spaces. Furthermore, the list is also not correctly indented. This should work: