tokusumi / markdown-embed-code

Action to synchronize "any" code in markdown with an external file. No more managing code as plain text.
MIT License
29 stars 14 forks source link

Update README.md by increasing backticks #10

Closed AlexandroPerez closed 2 years ago

AlexandroPerez commented 3 years ago

In the how to use section, a backlash is used to escape the sample how to use code:

 \```python:tests/src/sample.py

 \```

  And, you can refer specific lines as
  \```python:tests/src/sample.py [4-5]

  \```

But now is possible to add more backticks to fenced code blocks in order to allow triple backticks inside. For example the following fenced block uses backticks in order to be able to use an example of how the new README will show the sample

````markdown
 ```python:tests/src/sample.py

 ```

  And, you can refer specific lines as
  ```python:tests/src/sample.py [4-5]

Now there is no need to ask for the backslashes to be removed. I hope this helps.

tokusumi commented 2 years ago

@AlexandroPerez Thank you for your contributions🎉