{"id":16537838,"url":"https://github.com/acdcjunior/markdown-prism-revealjs","last_synced_at":"2025-03-03T21:09:28.803Z","repository":{"id":144982104,"uuid":"47729246","full_name":"acdcjunior/markdown-prism-revealjs","owner":"acdcjunior","description":"Reveal.js + PrismJS + Markdown with shortcuts","archived":false,"fork":false,"pushed_at":"2016-04-19T03:44:26.000Z","size":1608,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T05:10:53.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acdcjunior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-10T01:11:28.000Z","updated_at":"2021-02-03T10:24:06.000Z","dependencies_parsed_at":"2023-04-20T10:01:10.413Z","dependency_job_id":null,"html_url":"https://github.com/acdcjunior/markdown-prism-revealjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdcjunior%2Fmarkdown-prism-revealjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdcjunior%2Fmarkdown-prism-revealjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdcjunior%2Fmarkdown-prism-revealjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdcjunior%2Fmarkdown-prism-revealjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acdcjunior","download_url":"https://codeload.github.com/acdcjunior/markdown-prism-revealjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241739432,"owners_count":20012103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:43:41.402Z","updated_at":"2025-03-03T21:09:28.760Z","avatar_url":"https://github.com/acdcjunior.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reveal.js + PrismJS + Markdown shortcuts\n\n## Instructions\n\nHere are our default \"commands\":\n\n- `---` marks a new slide forward\n- `-- --` marks a new slide downward\n- `???` marks the notes for any slide\n- Using `#/1/` at the end of a bullet will make it be a fragment of index 1\n    - Similarly `#/2/` would be of index 2 and so on\n- `#[1,2]` after a code block will highlight the lines 1 and 2\n\n# How to Run\n\n- Clone this repo\n- Run `index.html`\n    - You can do that using the included java web server:\n        - Go to `lib/http-server` folder\n        - Run `start-java-http-server.bat` or `start-java-http-server.sh`\n        - Open the browser at http://127.0.0.1:5000/ (should have been opened automatically)\n    - **But, why?**\n    \t- This is needed because the markdown is not in index.html, but in an external file, you'll have to either:\n            - Run the `index.html` file through a web server\n            - Or disable the strict origin policy for local files at your browser\n        - Check the `lib/http-server` folder for alternatives\n\n# Editing\n\n- Edit [PRESENTATION.md](PRESENTATION.md)\n\t- If you have/want other markdown (`.md`) file that will be your presentation\n\t\t- Edit the `index.html`'s `section` tag, setting its `data-markdown` attribute to the `.md` file of your presentation\n\n---\n\n# What is this again?\n\nThis is a [reveal.js](https://github.com/hakimel/reveal.js) template I use for my own presentations. Here's what's different about it:\n\n- It uses reveal.js with PrismJS instead of Highlight.js\n    - Mainly because I wanted the [*Line Highlight*](http://prismjs.com/plugins/line-highlight/) functionality\n        - Now I use the [*Line Numbers*](http://prismjs.com/plugins/line-numbers/) plugin as well\n    - The theme PrismJS had is also used - though I changed the highlight colors\n    - Also added a simple regex so Prism's highlight code detects Java @Annotations\n- It adds some useful markdown shortcuts, e.g.:\n    - Using `#/1/` at the end of a bullet will make it be a fragment of index 1\n    - `#[1,2]` after a code block will highlight the lines 1 and 2\n- It includes some modifications so [decktape](https://github.com/astefanutti/decktape) can print it (export to PDF, actually)\n    - It is important to note that only decktape can print it any good, so I removed CSS style for printing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facdcjunior%2Fmarkdown-prism-revealjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facdcjunior%2Fmarkdown-prism-revealjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facdcjunior%2Fmarkdown-prism-revealjs/lists"}