mirror of
https://github.com/ganelson/inform.git
synced 2024-06-26 04:00:43 +03:00
Experimenting with limited use of Markdown in extension documentation
This commit is contained in:
parent
fe3dc5dbf1
commit
53a9196d19
|
@ -1,6 +1,6 @@
|
|||
# Inform 7
|
||||
|
||||
[Version](notes/versioning.md): 10.2.0-beta+6W99 'Krypton' (9 August 2023)
|
||||
[Version](notes/versioning.md): 10.2.0-beta+6X01 'Krypton' (11 August 2023)
|
||||
|
||||
## About Inform
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Prerelease: beta
|
||||
Build Date: 9 August 2023
|
||||
Build Number: 6W99
|
||||
Build Date: 11 August 2023
|
||||
Build Number: 6X01
|
||||
|
|
|
@ -656,9 +656,13 @@ had its infamous PNG transparency bug.)
|
|||
|
||||
=
|
||||
void DocumentationRenderer::render_text(OUTPUT_STREAM, text_stream *text) {
|
||||
WRITE("%S", text);
|
||||
markdown_item *md = Markdown::parse(text);
|
||||
HTML_OPEN_WITH("span", "class=\"markdowncontent\"");
|
||||
Markdown::render_md_purist(OUT, md);
|
||||
HTML_CLOSE("span");
|
||||
}
|
||||
|
||||
@ =
|
||||
void DocumentationRenderer::syntax_coloured_code(OUTPUT_STREAM, text_stream *text,
|
||||
text_stream *colouring, int from, int to) {
|
||||
wchar_t current_col = 0;
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
--paste-active-colour: #803030;
|
||||
--paste-passive-colour: #303030;
|
||||
--paste-background-colour: #f3f6fa;
|
||||
|
||||
--md-background-colour: #e3e6ea;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
@ -86,6 +88,8 @@
|
|||
--paste-active-colour: #a05050;
|
||||
--paste-passive-colour: #505050;
|
||||
--paste-background-colour: #090b0d;
|
||||
|
||||
--md-background-colour: #090b0d;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -549,6 +553,27 @@ button.dangerousbutton {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Used in rendering Markdown in extension documentation */
|
||||
|
||||
.markdowncontent em { font-style: italic; }
|
||||
.markdowncontent strong { font-weight: bold; }
|
||||
.markdowncontent code {
|
||||
font-size: 85%;
|
||||
font-family: SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
background-color: var(--md-background-colour);
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 2.38px;
|
||||
padding-left: 4.76px;
|
||||
padding-right: 4.76px;
|
||||
padding-top: 2.38px;
|
||||
white-space: break-spaces;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Used in syntax-colouring for extension documentation */
|
||||
|
||||
span.syntaxdefinition { color: var(--syntaxdefinition-colour); }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "Architecture16Kit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"compatibility": "16-bit",
|
||||
"kit-details": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "Architecture32Kit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"compatibility": "32-bit",
|
||||
"kit-details": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "BasicInformKit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"needs": [ {
|
||||
"need": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "CommandParserKit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"needs": [ {
|
||||
"need": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "EnglishLanguageKit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"needs": [ {
|
||||
"need": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"is": {
|
||||
"type": "kit",
|
||||
"title": "WorldModelKit",
|
||||
"version": "10.2.0-beta+6W99"
|
||||
"version": "10.2.0-beta+6X01"
|
||||
},
|
||||
"needs": [ {
|
||||
"need": {
|
||||
|
|
Loading…
Reference in a new issue