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

Using the commandLine plugin inside a markdown document #343

Open
EraYaN opened this issue Nov 8, 2021 · 0 comments
Open

Using the commandLine plugin inside a markdown document #343

EraYaN opened this issue Nov 8, 2021 · 0 comments

Comments

@EraYaN
Copy link

EraYaN commented Nov 8, 2021

Is there a possibility to use the command line plugin inside a markdown document.

markdown.md:

  beautiful document, some commands
  ```bash
  touch test-commmand.yml
  ```
  more document, and some code
  
  ```csharp
  Console.WriteLine("test");
  ```

I would like this to be rendered correctly with command line for the first code block and not the second code block.

Currently I'm using:
page.component.html:

<markdown [src]="'markdown.md'"></markdown>

If I add the commandLine switch to the main markdown element it puts the command line stuff on all code blocks, and just putting a nested markdown renderer inside will just print the html.

What is the best way to do this? (Same question applies for the lineNumbers plugin)

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

1 participant