Skip to content

Commit

Permalink
fix: Improve ruler syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Apr 23, 2022
1 parent 410a49d commit 8516512
Show file tree
Hide file tree
Showing 27 changed files with 2,806 additions and 243 deletions.
266 changes: 159 additions & 107 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,109 +1,161 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "🛠️ Convert Markdown ⇉ HTML",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": ["-t", "build-html", "-Ppython=${command:python.interpreterPath}", "--warning-mode", "all"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ PDF",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": ["-t", "build-pdf-tex", "-Ppython=${command:python.interpreterPath}", "--warning-mode", "all"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ Jira",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": ["-t", "build-jira", "-Ppython=${command:python.interpreterPath}", "--warning-mode", "all"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
// {
// "label": "Convert Markdown ⇉ PDF [chrome]",
// "type": "shell",
// "command": "${workspaceFolder}/gradlew",
// "args": [
// "-t",
// "build-pdf-chrome",
// "-Ppython=${command:python.interpreterPath}",
// ],
// "problemMatcher": [],
// "presentation": {
// "group": "converter"
// }
// },
{
"label": "🛠️ Build with latexmk",
"type": "shell",
"command": "latexmk",
"args": [
"-xelatex",
"-r",
"tools/.latexmkrc",
"-gg",
"-outdir=build/output-tex",
"build/output-tex/input.tex"],
"problemMatcher": [],
"presentation": {
"group": "converter"
},
},
{
"label": "📄 View HTML",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": ["-t", "view-html", "-Ppython=${command:python.interpreterPath}", "--warning-mode", "all"],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML, PDF",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": ["-parallel", "-t", "build-html", "build-pdf", "-Ppython=${command:python.interpreterPath}", "--warning-mode", "all"],
"problemMatcher": [],
"isBackground": true,
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML, PDF + 📄 View HTML",
"dependsOn": ["🛠️ Convert Markdown ⇉ HTML, PDF", "📄 View HTML"],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML + 📄 View HTML",
"type": "shell",
"dependsOn": ["🛠️ Convert Markdown ⇉ HTML", "📄 View HTML"],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
}
]
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "🛠️ Convert Markdown ⇉ HTML",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-t",
"build-html",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ PDF",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-t",
"build-pdf-tex",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ Jira",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-t",
"build-jira",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
// {
// "label": "Convert Markdown ⇉ PDF [chrome]",
// "type": "shell",
// "command": "${workspaceFolder}/gradlew",
// "args": [
// "-t",
// "build-pdf-chrome",
// "-Ppython=${command:python.interpreterPath}",
// ],
// "problemMatcher": [],
// "presentation": {
// "group": "converter"
// }
// },
{
"label": "🛠️ Build with latexmk",
"type": "shell",
"command": "latexmk",
"args": [
"-xelatex",
"-r",
"tools/.latexmkrc",
"-gg",
"-outdir=build/output-tex",
"build/output-tex/input.tex"
],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "📄 View HTML",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-t",
"view-html",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML, PDF",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-parallel",
"-t",
"build-html",
"build-pdf",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"isBackground": true,
"presentation": {
"panel": "dedicated",
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML, PDF + 📄 View HTML",
"dependsOn": ["🛠️ Convert Markdown ⇉ HTML, PDF", "📄 View HTML"],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML + 📄 View HTML",
"type": "shell",
"dependsOn": ["🛠️ Convert Markdown ⇉ HTML", "📄 View HTML"],
"problemMatcher": [],
"presentation": {
"group": "converter"
}
},
{
"label": "🛠️ Convert Markdown ⇉ HTML (package)",
"type": "shell",
"command": "${workspaceFolder}/gradlew",
"args": [
"-parallel",
"-t",
"package-html",
"-Ppython=${command:python.interpreterPath}",
"--warning-mode",
"all"
],
"problemMatcher": [],
"isBackground": true,
"presentation": {
"panel": "dedicated",
"group": "converter"
}
}
]
}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ val viewHTML = tasks.register<Exec>("view-html") {
}

val packageHTML = tasks.register<Copy>("package-html") {
dependsOn(buildHTML)
from("${project.buildDir}")
include("files/**", "css/**", "Content.html")
into("${project.rootDir}/docs/html-package")
Expand Down
11 changes: 5 additions & 6 deletions build/Content.html
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,10 @@ <h2 data-number="2.4" id="questionaire-sample"><span
class="header-section-number">2.4</span> Questionaire Sample</h2>
<h3 class="unnumbered unlisted" id="personal">Personal</h3>
<ul>
<li><span class="hrule-fill"
style="width:10cm;border-bottom-width:0.5pt">Name:</span></li>
<li><span class="hrule-fill"
style="width:10cm;border-bottom-width:0.5pt">Email:</span></li>
<li>Name: <span class="hrule-fill"
style="width:10cm;border-bottom-width:0.5pt"></span></li>
<li>Email: <span class="hrule-fill"
style="width:10cm;border-bottom-width:0.5ptvertical-align:-4pt"></span></li>
</ul>
<h3 class="unnumbered unlisted" id="how-hard-is-markdown">How hard is
Markdown?</h3>
Expand All @@ -833,8 +833,7 @@ <h3 class="unnumbered unlisted" id="how-hard-is-markdown">How hard is
<span class="hrule-fill"
style="width:100%;border-bottom-width:0.5pt"></span><br />
<span class="hrule-fill"
style="width:50%;border-bottom-width:0.5pt"></span><br />
</p>
style="width:100%;border-bottom-width:0.5pt"></span></p>
<h2 data-number="2.5" id="tables"><span
class="header-section-number">2.5</span> Tables</h2>
<h3 data-number="2.5.1" id="html-table"><span
Expand Down
Binary file modified build/Content.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions build/output-tex/input.tex
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,9 @@ \subsection*{Personal}\label{personal}}
\begin{itemize}
\tightlist
\item
Name:\xhrulefill[,fill=10cm,thickness=0.5pt]
Name: \xhrulefill[,fill=10cm,thickness=0.5pt]
\item
Email:\xhrulefill[,fill=10cm,thickness=0.5pt]
Email: \xhrulefill[,fill=10cm,thickness=0.5pt,height=-4pt]
\end{itemize}

\hypertarget{how-hard-is-markdown}{%
Expand All @@ -850,9 +850,9 @@ \subsection*{Which features would you like to have which Markdown does
currently not
support?}\label{which-features-would-you-like-to-have-which-markdown-does-currently-not-support}}

\xhrulefill[,fill=1.0000\textwidth,thickness=0.5pt]\\
\xhrulefill[,fill=1.0000\textwidth,thickness=0.5pt]\\
\xhrulefill[,fill=0.5000\textwidth,thickness=0.5pt]\\
\xhrule[,fill=1.0000\textwidth,thickness=0.5pt]\\
\xhrule[,fill=1.0000\textwidth,thickness=0.5pt]\\
\xhrule[,fill=1.0000\textwidth,thickness=0.5pt]

\hypertarget{tables}{%
\section{Tables}\label{tables}}
Expand Down
10 changes: 5 additions & 5 deletions chapters/MarkdownSamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ Selecting pages works only in `latex` output.
## Personal {.unnumbered .unlisted}
- [Name:]{.hrule-fill thickness=0.5pt width=10cm}
- [Email:]{.hrule-fill thickness=0.5pt width=10cm}
- Name: []{.hrule-fill thickness=0.5pt width=10cm}
- Email: []{.hrule-fill thickness=0.5pt height=-4pt width=10cm}
## How hard is Markdown? {.unnumbered .unlisted}
Expand All @@ -117,6 +117,6 @@ Selecting pages works only in `latex` output.
## Which features would you like to have which Markdown does currently not support? {.unnumbered .unlisted}
[]{.hrule-fill thickness=0.5pt width=100% .linebreak} \
[]{.hrule-fill thickness=0.5pt width=100% .linebreak} \
[]{.hrule-fill thickness=0.5pt width=50% .linebreak} \
[]{.hrule thickness=0.5pt width=100%} \
[]{.hrule thickness=0.5pt width=100%} \
[]{.hrule thickness=0.5pt width=100%}
Loading

0 comments on commit 8516512

Please sign in to comment.