mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Adds markdown preview rendering. Adds markdown type and icons.
This commit is contained in:
parent
298d2e2efd
commit
9c1142bd02
13 changed files with 1696 additions and 21 deletions
|
@ -180,7 +180,8 @@ var H5AI_CONFIG = {
|
|||
|
||||
/*
|
||||
* Show text file preview on click.
|
||||
* "types" maps file types to SyntaxHighligher brushes.
|
||||
* "types" maps file types to SyntaxHighligher brushes. Special case: "markdown" will
|
||||
* be rendered to HTML.
|
||||
*
|
||||
* For available brushes see http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
|
||||
*/
|
||||
|
@ -191,6 +192,7 @@ var H5AI_CONFIG = {
|
|||
"copying": "plain",
|
||||
"css": "css",
|
||||
"install": "plain",
|
||||
"markdown": "plain",
|
||||
"readme": "plain",
|
||||
"script": "shell",
|
||||
"text": "plain",
|
||||
|
@ -310,6 +312,7 @@ var H5AI_CONFIG = {
|
|||
"js": [".js", ".json"],
|
||||
"log": [".log", "changelog"],
|
||||
"makefile": [".pom", "build.xml", "pom.xml"],
|
||||
"markdown": [".markdown", ".md"],
|
||||
"package": [],
|
||||
"pdf": [".pdf"],
|
||||
"php": [".php"],
|
||||
|
@ -330,7 +333,7 @@ var H5AI_CONFIG = {
|
|||
"sql": [],
|
||||
"tar": [".tar"],
|
||||
"tex": [".tex"],
|
||||
"text": [".diff", ".markdown", ".md", ".patch", ".text", ".txt"],
|
||||
"text": [".diff", ".patch", ".text", ".txt"],
|
||||
"tiff": [".tiff"],
|
||||
"unknown": [],
|
||||
"vcal": [".vcal"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue