Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Shenlin
/
markdown-view
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
lintry
2018-02-23 17:14:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c8074be4565e9586210ef08475e155dd7b8cabc6
c8074be4
1 parent
0c006d77
调整路径写法
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
lib/md-action.js
src/index.ejs
lib/md-action.js
View file @
c8074be
...
...
@@ -54,7 +54,7 @@ function MdAction (alias_name, md_path) {
return
next
();
}
let
resource_base
=
req
.
original_uri
.
base
||
''
;
let
resource_base
=
req
.
original_uri
.
base
||
'
/
'
;
let
html
=
viewer
.
render
(
urls
[
1
],
query
.
t
,
resource_base
);
res
.
send
(
html
)
...
...
src/index.ejs
View file @
c8074be
...
...
@@ -6,8 +6,8 @@
<
%= tittle %>
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"<%= resource_base + '
/
markdown.css'%>"
>
<link
rel=
"stylesheet"
href=
"<%= resource_base +
'/' +
theme + '/' + theme + '.css' %>"
>
<link
rel=
"stylesheet"
href=
"<%= resource_base + 'markdown.css'%>"
>
<link
rel=
"stylesheet"
href=
"<%= resource_base + theme + '/' + theme + '.css' %>"
>
</head>
<body>
<div
class=
'markdown <%= theme %>'
>
...
...
Please
register
or
login
to post a comment