Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit df692a9

Browse files
docs: highlight lines demo
1 parent 07d28c7 commit df692a9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It is implemented with [Stencil](https://stenciljs.com) and use [Prism.js](https
88

99
The inspiration for the design of the "Macish" cards comes from the amazing [carbon](https://carbon.now.sh), a tool to create and share beautiful images of your source code, and for the "Ubuntu-ish" from the [article](https://dev.to/codypearce/ubuntu-terminal-in-css-1aeo) of [Cody Pearce](https://twitter.com/codyapearce).
1010

11-
## Designs
11+
## Design
1212

1313
### 1. Carbon
1414

@@ -189,8 +189,14 @@ See the [@deckdeckgo/highlight-code] documentation for the list of CSS4 styling
189189

190190
Single or multiple lines of code can be highlighted.
191191

192+
<div align="center">
193+
<img src="https://raw.githubusercontent.com/deckgo/gatsby-remark-highlight-code/master/static/highlight-lines.gif" alt="Highlight lines" width="50%">
194+
</div>
195+
192196
The Markdown syntax is the following: next to the specification of the language, between brackets `{}`, the lines should be provided in a comma separated list. A single line can be provided (for example `dart{1}`) or multiple one, from and to being separated with a dash (for example `javascript{3-6}`). Both single or multiple lines can be mixed (for example `typescript{2, 3,4, 7, 8-15}`).
193197

198+
Animation between the selected highlighted groups can be triggered with the help of methods (see component [@deckdeckgo/highlight-code] documentation for details).
199+
194200
## Showcase
195201

196202
I (David here) use this plugin in the blog of my personal website [daviddalbusco.com](https://daviddalbusco.com).

static/highlight-lines.gif

627 KB
Loading

0 commit comments

Comments
 (0)