Skip to content

Commit

Permalink
modify md tool
Browse files Browse the repository at this point in the history
  • Loading branch information
puutaro committed Nov 7, 2023
1 parent fb91e11 commit 3c75479
Showing 1 changed file with 31 additions and 32 deletions.
63 changes: 31 additions & 32 deletions app/src/main/java/com/puutaro/commandclick/util/MarkDownTool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,39 @@ object MarkDownTool {
<!-- ◆シンタックスハイライト用 css (好きなテーマを選んで指定する) -->
<link rel="stylesheet" href="file:///android_asset/js/highlight.js_9.9.0_styles_ir-black.min.css">
<style>
table { border-collapse: collapse; }
th, td { border:1px solid #999; padding:2px 5px; }
th { background:#A8F2E1; }
/* body {
width: 95%;
margin-right: auto;
margint-left: auto;
}*/
#markdown {
width: 95%;
margin-right: auto;
margin-left: auto;
}
a {
color:#0000FF; text-decoration:none;
}
</style>
</head>
<body>
<div id="markdown">
# ${scriptName}
-------
${contents}
</div>
<script>
${'$'}(function() {
// ★marked.js の設定
marked.setOptions({
breaks : true,
Expand Down Expand Up @@ -57,37 +87,6 @@ object MarkDownTool {
}
</script>
<style>
table { border-collapse: collapse; }
th, td { border:1px solid #999; padding:2px 5px; }
th { background:#A8F2E1; }
/* body {
width: 95%;
margin-right: auto;
margint-left: auto;
}*/
#markdown {
width: 95%;
margin-right: auto;
margin-left: auto;
}
a {
color:#0000FF; text-decoration:none;
}
</style>
</head>
<body>
<div id="markdown">
# ${scriptName}
-------
${contents}
</div>
</body>
</html>
Expand Down

0 comments on commit 3c75479

Please sign in to comment.