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

Feat/marked #36

Merged
merged 25 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fcce4f1
core: first draft for using marked extensions
jefBinomed Dec 6, 2024
531055c
core: add custom img marked plugin
jefBinomed Dec 20, 2024
37b6255
core: start adding marked icons extension
jefBinomed Dec 20, 2024
8bdf0b6
core: first draft of adding font-icons
jefBinomed Dec 20, 2024
cbcc0ad
draft: to help to test marked plugins
jefBinomed Dec 20, 2024
1fcb647
core: add material-symbols
jefBinomed Jan 3, 2025
0137fa4
core: fix feather icons load
jefBinomed Jan 3, 2025
2c6d76b
core: fix icons inline management
jefBinomed Jan 3, 2025
1aea0b6
docs: refactor demo and add icons & images
jefBinomed Jan 3, 2025
8edcc8f
core: marked for background fix #34
jefBinomed Jan 3, 2025
1bf90a8
core: add marked column support
jefBinomed Jan 23, 2025
052a25c
demo: reworks markdown examples
jefBinomed Jan 23, 2025
80d05b3
test: reworks tests for bg
jefBinomed Jan 23, 2025
7373708
css: add support to mask outside of transitions slides
jefBinomed Jan 23, 2025
2044414
demo: complete icons demo
jefBinomed Jan 31, 2025
d954c1f
core: rework icon options
jefBinomed Jan 31, 2025
e4da15e
scss: add icons css
jefBinomed Jan 31, 2025
99aaa8d
tests: add test for icons options
jefBinomed Jan 31, 2025
68d9524
test: complete tests suite
jefBinomed Feb 11, 2025
6a30261
tests: fix tests suite for feather icons
jefBinomed Feb 11, 2025
ceae78d
tests: add tests for plugin in general (WIP)
jefBinomed Feb 11, 2025
d30331c
tests: complete test suite
jefBinomed Feb 12, 2025
8bdcd47
test: fix compilation errors
jefBinomed Feb 19, 2025
37aff16
lint: fix lint errors
jefBinomed Feb 19, 2025
240882b
prettier:fix
jefBinomed Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions demo/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
html {
}
5 changes: 5 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
type="text/css"
href="./web_modules/talk-control-revealjs-extensions/talk-control-revealjs-theme.css"
id="theme" />
<link
rel="stylesheet"
type="text/css"
href="./demo.css"
id="custom-theme" />
</head>

<body>
Expand Down
5 changes: 5 additions & 0 deletions demo/markdown/03-layouts/10_chapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- .slide: class="transition" -->

# Layouts

## Presentation of Layouts
63 changes: 63 additions & 0 deletions demo/markdown/03-layouts/20_multiple-columns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!-- .slide: class="transition" -->

# Multiple columns

##==##

<!-- .slide: class="tc-multiple-columns" -->

##++##

# Column 1

Some content

##++##

##++##

# Column 2

Some content

##++##

##++##

# Column 3

Some content

##++##

##==##

<!-- .slide: class="tc-multiple-columns" -->

##++## data-background="red"

# Column 1 with bg

Some content

##++##

##++## data-background="./assets/images/light_background.jpg" class="mask"

# Column 2 with image bg

Some content

##++##

##==##

<!-- .slide: data-background="yellow" -->

# Vertical slide with bg (first)

##--##

<!-- .slide: data-background="green" -->

# Vertical slide with bg (second)
5 changes: 5 additions & 0 deletions demo/markdown/10-helpers/10_chapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- .slide: class="transition" -->

# Helpers utilities

## Presentation of Helpers utilities
117 changes: 117 additions & 0 deletions demo/markdown/10-helpers/11_images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<!-- .slide: class="transition" -->

# Images Utilities

##==##

# Use classes with images

![](./assets/images/jf.jpg 'test image')

![](./assets/images/jf.jpg 'test image')<!-- .element: class="speaker" -->
![](./assets/images/jf.jpg 'test image')
bla bla bla ![un alt](./assets/images/jf.jpg 'test image') bla bla

##==##

# Other way to define background

## Different than using `.slide: data-background`

![](./assets/images/light_background.jpg 'tc-bg')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
![](./assets/images/light_background.jpg 'tc-bg')
```

<!-- .element: class="big-code" -->

##==##

# Other way to define color background

## Different than using `.slide: data-background`

![](red 'tc-bg')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
![](red 'tc-bg')
```

<!-- .element: class="big-code" -->

##==##

# Other way to define color background with rgb

## Different than using `.slide: data-background`

![](rgb(128, 128, 128) 'tc-bg')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
![](rgb(128, 128, 128) 'tc-bg')
```

<!-- .element: class="big-code" -->

##==##

# Other way to define color background with hash

## Different than using `.slide: data-background`

![](#ececec 'tc-bg')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
![](#ececec 'tc-bg')
```

<!-- .element: class="big-code" -->

##==##

<!-- .slide: class="mask transition" -->

# Use background but preserve meta of reveal (.slide)

![](./assets/images/dark_background.jpeg 'tc-bg')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
<!-- .slide: class="mask transition" -->

# Use background but preserve meta of reveal (.slide)

![](./assets/images/dark_background.jpeg 'tc-bg')
```

<!-- .element: class="big-code" -->
133 changes: 133 additions & 0 deletions demo/markdown/10-helpers/20_icons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!-- .slide: class="transition" -->

# Use of icons

##==##

<!-- .slide: class="with-code" -->

# Configurables icons

You can use icons using the following syntax:

```markdown
![](icon-keyword 'icon-framework-keyword tc-icons')
```

<!-- .element: class="big-code" -->

Supports libraries:

- Font Awesome
- Feather
- Material Design Icons

##==##

# Font Awesome

Classic ![](fa-user 'fa-solid fa tc-icons')

Using size attributes of font-awesome ![](fa-user 'fa-solid fa tc-icons fa-2xl')

Using animations of font-awesome ![](fa-user 'fa-solid fa tc-icons fa-fade')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
Classic ![](fa-user 'fa-solid fa tc-icons')

Using size attributes of font-awesome ![](fa-user 'fa-solid fa tc-icons fa-2xl')

Using animations of font-awesome ![](fa-user 'fa-solid fa tc-icons fa-fade')
```

<!-- .element: class="big-code" -->

##==##

# Feather

Classic ![](user 'feather tc-icons')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
Classic ![](user 'feather tc-icons')
```

##==##

# Material Symbols

Classic round![](person 'material-symbols material-symbols-rounded tc-icons')

Using filled option ![](person 'material-symbols material-symbols-rounded tc-icons') <!-- .element: style="font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;" -->

Add Box using outlined / rounded / sharp ![](add_box 'material-symbols material-symbols-outlined tc-icons') ![](add_box 'material-symbols material-symbols-rounded tc-icons') ![](add_box 'material-symbols material-symbols-sharp tc-icons')

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
![](person 'material-symbols material-symbols-rounded tc-icons')

![](person 'material-symbols material-symbols-rounded tc-icons') <!-- .element: style="font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;" -->
```

<!-- .element: class="big-code" -->

##==##

# Talk control icon's helpers

Material small![](person 'material-symbols material-symbols-sharp tc-icons tc-small')
Feather small![](user 'feather tc-icons tc-small')
FA small![](fa-user 'fa-solid fa tc-icons tc-small')

Material big![](person 'material-symbols material-symbols-sharp tc-icons tc-big')
Feather big![](user 'feather tc-icons tc-big')
FA big![](fa-user 'fa-solid fa tc-icons tc-big')

Material colored![](person 'material-symbols material-symbols-rounded tc-icons')<!-- .element: style="--tc-icon-color:red" -->
Feather colored![](user 'feather tc-icons')<!-- .element: style="--tc-icon-color:red" -->
FA colored![](fa-user 'fa-solid fa tc-icons')<!-- .element: style="--tc-icon-color:red" -->

Material custom size![](person 'material-symbols material-symbols-rounded tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->
Feather custom size![](user 'feather tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->
FA custom size![](fa-user 'fa-solid fa tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->

##--##

<!-- .slide: class="with-code" -->

# Code to produce / Markdown

```markdown
Material small![](person 'material-symbols material-symbols-sharp tc-icons tc-small')
Feather small![](user 'feather tc-icons tc-small')
FA small![](fa-user 'fa-solid fa tc-icons tc-small')

Material big![](person 'material-symbols material-symbols-sharp tc-icons tc-big')
Feather big![](user 'feather tc-icons tc-big')
FA big![](fa-user 'fa-solid fa tc-icons tc-big')

Material colored![](person 'material-symbols material-symbols-rounded tc-icons')<!-- .element: style="--tc-icon-color:red" -->
Feather colored![](user 'feather tc-icons')<!-- .element: style="--tc-icon-color:red" -->
FA colored![](fa-user 'fa-solid fa tc-icons')<!-- .element: style="--tc-icon-color:red" -->

Material custom size![](person 'material-symbols material-symbols-rounded tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->
Feather custom size![](user 'feather tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->
FA custom size![](fa-user 'fa-solid fa tc-icons')<!-- .element: style="--tc-icon-size:3em;" -->
```
Loading