a relatively accurate github flavoured markdown preview
js
const isHighlighted = true;
if(isHighlighted) {
console.log('woot woot!');
}
php
<?php
var $php_is_supported = 'but that still doesn\'t mean you should use it';
$servername = 'localhost:1337';
$username = 'root';
$password = 'password123';
$dbname = 'users';
$conn = new mysqli($servername, $username, $password, $dbname)
$sql = 'SELECT username, password, date_of_birth, mothers_maiden_name, pets_name FROM users' + $_GET['query'];
$result = $conn->query($sql);
?>
python
from * import <insert project name here> as project
if __name__ == "__main__":
project.run()
bash
$ git add .
$ git commit -m "idk"
$ git push --force
$ sudo rm -rf
css
* body {
color: #000 !important;
background-color: #000 !important;
}
enabled languages
bash
,clike
,c
,csharp
,cpp
,css
,diff
,git
,docker
,go
,haml
,java
,javascript
,json
,less
,markup
,markup-templating
,markdown
,handlebars
,php
,pug
,python
,jsx
,tsx
,ruby
,sass
,scss
,stylus
,swift
,twig
,typescript
,yaml
no calls to home, no fonts that track you, no data collection
this is a PWA (progressive web app), meaning everything works without an active network connection
try it!
$ npm run dev
$ npm run build
$ git clone https://github.com/harryparkdotio/ghmd.git
$ npm i
- kinks with the github style for code highlighting are still being worked out, if you come across a bug, please submit an issue with an image of the way github displays it and how this displays it.