OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-04-29 19:23:42 +00:00
parent feb912633a
commit c28818b7a0
23 changed files with 124 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
created: 20230428191837774
created: 20230429192341730
current-tiddler: GettingStarted
modified: 20230428191837774
modified: 20230429192341730
title: $:/HistoryList
type: application/json

View File

@@ -24,12 +24,12 @@ try {
if (!Text) {
Text = '<p>An error occurred while trying to extract the content. Close and reopen this <i>tiddler</i> to retry, or click the link to open the source in a new tab.</p>'
};
Text = Text.replaceAllTxt('\n', '').replaceAllTxt('<p class="mw-empty-elt"></p>', '');
Text = Text.replaceAll('\n', '').replaceAll('<p class="mw-empty-elt"></p>', '');
if (Sections != 0) {
for (let i=1; i<=6; i++) {
Text = Text.replaceAllTxt(`</p><h${i}>`, `</p><!--:PARAGRAPH:--->\n<h${i}>`);
Text = Text.replaceAll(`</p><h${i}>`, `</p><!--:PARAGRAPH:--->\n<h${i}>`);
};
Text = Text.replaceAllTxt(`</p><p>`, `</p><!--:PARAGRAPH:---><p>`);
Text = Text.replaceAll(`</p><p>`, `</p><!--:PARAGRAPH:---><p>`);
//Text = Text.split('<!--:PARAGRAPH:--->').slice(0, Max+1).join('');
//Text = Text.split('<p>').slice(0, Max+1).join('<p>');
if (Sections < 0) {

View File

@@ -2,7 +2,7 @@ Note: source must always be credited, and thus it's not ideal to use this macro
See [[$: /Macros/MediaWiki]] for usage of this macro.
created: 20230108190340455
creator: Octt
modified: 20230124213837502
modified: 20230429192152268
modifier: Octt
module-type: macro
tags:

View File

@@ -1,3 +1,3 @@
created: 19700101000000000
modified: 20230425100440000
modified: 20230428191937000
title: $:/OcttKB/Empty

View File

@@ -5,8 +5,10 @@ exports.startup = function() {
try {
// https://stackoverflow.com/a/63958411
String.prototype.replaceAllTxt = function replaceAll(search, replace) {
return this.split(search).join(replace);
if (!String.prototype.replaceAll) {
String.prototype.replaceAll = function replaceAll(search, replace) {
return this.split(search).join(replace);
};
};
} catch(e) {

View File

@@ -1,5 +1,7 @@
created: 20230111154758023
modified: 20230112185932820
creator: Octt
modified: 20230429192213300
modifier: Octt
module-type: startup
tags:
title: $:/OcttKB/Polyfills.js

View File

@@ -1,6 +1,6 @@
created: 20230428190551330
created: 20230429182908215
creator: Octt
list:
modified: 20230428191555933
modified: 20230429192120468
modifier: Octt
title: $:/StoryList

View File

@@ -1,7 +1,7 @@
created: 20221109142817793
creator: Octt
modified: 20230219212336934
modified: 20230429191340930
modifier: Octt
title: $:/state/addplugins/tab-1342078386
$:/config/OfficialPluginLibrary
$:/config/TiddlyWiki-CPL/GitHub

View File

@@ -1,7 +1,7 @@
created: 20220920140732083
creator: Octt
modified: 20230302115946570
modified: 20230429183022361
modifier: Octt
title: $:/state/showeditpreview
yes
no

View File

@@ -1,6 +1,6 @@
created: 20220920174307633
creator: Octt
modified: 20230425100159359
modified: 20230429191320001
modifier: Octt
title: $:/state/sidebar

View File

@@ -1,7 +1,7 @@
created: 20220920090405977
creator: Octt
modified: 20230413090110252
modified: 20230429191411290
modifier: Octt
title: $:/state/tab-1749438307
$:/core/ui/ControlPanel/Plugins
$:/core/ui/ControlPanel/Info

View File

@@ -1,6 +1,6 @@
created: 20220920092307479
creator: Octt
modified: 20230417115328628
modified: 20230429191920084
modifier: Octt
title: $:/state/tab/sidebar--595412856

View File

@@ -0,0 +1,7 @@
created: 20230429190915304
creator: Octt
modified: 20230429190917201
modifier: Octt
title: $:/state/toc/Web-HTTP-726624880
close

View File

@@ -1,6 +1,6 @@
created: 20230215211524153
creator: Octt
modified: 20230301211915784
modified: 20230429190936497
modifier: Octt
title: $:/state/tree/Saved/Articles/

View File

@@ -0,0 +1,7 @@
created: 20230429190937264
creator: Octt
modified: 20230429190937809
modifier: Octt
title: $:/state/tree/Saved/News/
hide

View File

@@ -1,6 +1,6 @@
created: 20230307215026101
creator: Octt
modified: 20230307215026780
modified: 20230429190942313
modifier: Octt
title: $:/state/tree/Saved/Posts/

View File

@@ -0,0 +1,7 @@
created: 20230429190939216
creator: Octt
modified: 20230429191013641
modifier: Octt
title: $:/state/tree/Saved/Sites/
hide