Fixes #143
parent
3175b3c948
commit
0b82d248d3
|
@ -35,6 +35,7 @@ export {
|
||||||
MarkdownParser,
|
MarkdownParser,
|
||||||
parseCode,
|
parseCode,
|
||||||
parser as baseParser,
|
parser as baseParser,
|
||||||
|
Strikethrough,
|
||||||
Subscript,
|
Subscript,
|
||||||
Superscript,
|
Superscript,
|
||||||
Table,
|
Table,
|
||||||
|
|
|
@ -7,6 +7,7 @@ import {
|
||||||
markdown,
|
markdown,
|
||||||
MarkdownConfig,
|
MarkdownConfig,
|
||||||
StreamLanguage,
|
StreamLanguage,
|
||||||
|
Strikethrough,
|
||||||
styleTags,
|
styleTags,
|
||||||
Table,
|
Table,
|
||||||
tags as t,
|
tags as t,
|
||||||
|
@ -127,7 +128,7 @@ const CommandLink: MarkdownConfig = {
|
||||||
|
|
||||||
const HighlightDelim = { resolve: "Highlight", mark: "HighlightMark" };
|
const HighlightDelim = { resolve: "Highlight", mark: "HighlightMark" };
|
||||||
|
|
||||||
export const Strikethrough: MarkdownConfig = {
|
export const Highlight: MarkdownConfig = {
|
||||||
defineNodes: [
|
defineNodes: [
|
||||||
{
|
{
|
||||||
name: "Highlight",
|
name: "Highlight",
|
||||||
|
@ -250,6 +251,7 @@ export default function buildMarkdown(mdExtensions: MDExt[]): Language {
|
||||||
FrontMatter,
|
FrontMatter,
|
||||||
TaskList,
|
TaskList,
|
||||||
Comment,
|
Comment,
|
||||||
|
Highlight,
|
||||||
Strikethrough,
|
Strikethrough,
|
||||||
Table,
|
Table,
|
||||||
...mdExtensions.map(mdExtensionSyntaxConfig),
|
...mdExtensions.map(mdExtensionSyntaxConfig),
|
||||||
|
@ -257,11 +259,6 @@ export default function buildMarkdown(mdExtensions: MDExt[]): Language {
|
||||||
{
|
{
|
||||||
props: [
|
props: [
|
||||||
styleTags({
|
styleTags({
|
||||||
// WikiLink: ct.WikiLinkTag,
|
|
||||||
// WikiLinkPage: ct.WikiLinkPageTag,
|
|
||||||
// WikiLinkAlias: ct.WikiLinkPageTag,
|
|
||||||
// CommandLink: ct.CommandLinkTag,
|
|
||||||
// CommandLinkName: ct.CommandLinkNameTag,
|
|
||||||
Task: ct.TaskTag,
|
Task: ct.TaskTag,
|
||||||
TaskMarker: ct.TaskMarkerTag,
|
TaskMarker: ct.TaskMarkerTag,
|
||||||
Comment: ct.CommentTag,
|
Comment: ct.CommentTag,
|
||||||
|
|
|
@ -25,7 +25,6 @@ const typesWithMarks = [
|
||||||
"InlineCode",
|
"InlineCode",
|
||||||
"Highlight",
|
"Highlight",
|
||||||
"Strikethrough",
|
"Strikethrough",
|
||||||
// "CommandLink",
|
|
||||||
];
|
];
|
||||||
/**
|
/**
|
||||||
* The elements which are used as marks.
|
* The elements which are used as marks.
|
||||||
|
@ -35,7 +34,6 @@ const markTypes = [
|
||||||
"CodeMark",
|
"CodeMark",
|
||||||
"HighlightMark",
|
"HighlightMark",
|
||||||
"StrikethroughMark",
|
"StrikethroughMark",
|
||||||
// "CommandLinkMark",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -40,6 +40,7 @@ export default function highlightStyles(mdExtension: MDExt[]) {
|
||||||
{ tag: [t.regexp, t.escape, t.special(t.string)], class: "sb-string2" },
|
{ tag: [t.regexp, t.escape, t.special(t.string)], class: "sb-string2" },
|
||||||
{ tag: t.variableName, class: "sb-variableName" },
|
{ tag: t.variableName, class: "sb-variableName" },
|
||||||
{ tag: t.typeName, class: "sb-typeName" },
|
{ tag: t.typeName, class: "sb-typeName" },
|
||||||
|
{ tag: t.strikethrough, class: "sb-strikethrough" },
|
||||||
{ tag: t.comment, class: "sb-comment" },
|
{ tag: t.comment, class: "sb-comment" },
|
||||||
{ tag: t.invalid, class: "sb-invalid" },
|
{ tag: t.invalid, class: "sb-invalid" },
|
||||||
{ tag: t.processingInstruction, class: "sb-meta" },
|
{ tag: t.processingInstruction, class: "sb-meta" },
|
||||||
|
|
|
@ -187,6 +187,14 @@
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sb-strikethrough {
|
||||||
|
text-decoration: line-through;
|
||||||
|
|
||||||
|
&.sb-meta {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sb-line-hr {
|
.sb-line-hr {
|
||||||
border-top: rgb(76, 75, 75) solid 1px;
|
border-top: rgb(76, 75, 75) solid 1px;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
|
|
@ -6,6 +6,7 @@ release.
|
||||||
## Next
|
## Next
|
||||||
|
|
||||||
* Replaced the `--password` flag with `--user` taking a basic auth combination of username and password, e.g. `--user pete:1234`. Authentication now uses standard basic auth. This should fix attachments not working with password protected setups.
|
* Replaced the `--password` flag with `--user` taking a basic auth combination of username and password, e.g. `--user pete:1234`. Authentication now uses standard basic auth. This should fix attachments not working with password protected setups.
|
||||||
|
* Added support for ~~strikethrough~~ syntax.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue