@hyperbook/markdown 0.24.10 → 0.24.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +28 -1
- package/dist/index.js.map +2 -2
- package/dist/locales/de.json +4 -1
- package/dist/locales/en.json +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63885,6 +63885,9 @@ var remarkDirectiveSqlIde_default = (ctx) => () => {
|
|
|
63885
63885
|
|
|
63886
63886
|
// locales/en.json
|
|
63887
63887
|
var en_default = {
|
|
63888
|
+
"footnote-label": "Footnotes",
|
|
63889
|
+
"footnote-back-label": "Back to reference {{index}}",
|
|
63890
|
+
"footnote-back-label-many": "Back to reference {{from}}-{{to}}",
|
|
63888
63891
|
"store-different-origin": "The Hyperbook file is from a different origin {{origin}}. Do you want to import it anyways?",
|
|
63889
63892
|
"store-import-successful": "The Hyperbook file has been imported successfully.",
|
|
63890
63893
|
"store-not-supported-file-version": "The Hyperbook file has an unsupported version {{version}}.",
|
|
@@ -63935,6 +63938,9 @@ var en_default = {
|
|
|
63935
63938
|
|
|
63936
63939
|
// locales/de.json
|
|
63937
63940
|
var de_default = {
|
|
63941
|
+
"footnote-label": "Fu\xDFnoten",
|
|
63942
|
+
"footnote-back-label": "Hochspringen nach: {{index}}",
|
|
63943
|
+
"footnote-back-label-many": "Hochspringen nach: {{from}}-{{to}}",
|
|
63938
63944
|
"store-different-origin": "Die Hyperbook-Datei stammt aus einer anderen Quelle {{origin}}. M\xF6chten Sie sie trotzdem importieren?",
|
|
63939
63945
|
"store-import-successful": "Die Hyperbook-Datei wurde erfolgreich importiert.",
|
|
63940
63946
|
"store-not-supported-file-version": "Die Hyperbook-Datei hat eine nicht unterst\xFCtzte Version {{version}}.",
|
|
@@ -72825,6 +72831,14 @@ var remarkDirectiveStruktog_default = (ctx) => () => {
|
|
|
72825
72831
|
children: []
|
|
72826
72832
|
}
|
|
72827
72833
|
]
|
|
72834
|
+
},
|
|
72835
|
+
{
|
|
72836
|
+
type: "element",
|
|
72837
|
+
tagName: "div",
|
|
72838
|
+
properties: {
|
|
72839
|
+
class: "borderWidth frameLeft"
|
|
72840
|
+
},
|
|
72841
|
+
children: []
|
|
72828
72842
|
}
|
|
72829
72843
|
]
|
|
72830
72844
|
}
|
|
@@ -74158,6 +74172,7 @@ html, body {
|
|
|
74158
74172
|
|
|
74159
74173
|
// src/process.ts
|
|
74160
74174
|
var remark = (ctx) => {
|
|
74175
|
+
i18n.init(ctx.config.language || "en");
|
|
74161
74176
|
const remarkPlugins = [
|
|
74162
74177
|
remarkRemoveComments,
|
|
74163
74178
|
remarkGemoji,
|
|
@@ -74202,7 +74217,19 @@ var remark = (ctx) => {
|
|
|
74202
74217
|
remarkCollectSearchDocuments_default(ctx)
|
|
74203
74218
|
];
|
|
74204
74219
|
return unified().use(remarkParse).use(remarkPlugins).use(remarkRehype, {
|
|
74205
|
-
allowDangerousHtml: ctx.config.allowDangerousHtml || false
|
|
74220
|
+
allowDangerousHtml: ctx.config.allowDangerousHtml || false,
|
|
74221
|
+
footnoteLabel: i18n.get("footnote-label"),
|
|
74222
|
+
footnoteBackLabel(referenceIndex, rereferenceIndex) {
|
|
74223
|
+
if (rereferenceIndex > 1) {
|
|
74224
|
+
return i18n.get("footnote-back-label-many", {
|
|
74225
|
+
index: `${referenceIndex + 1}`
|
|
74226
|
+
});
|
|
74227
|
+
}
|
|
74228
|
+
return i18n.get("footnote-back-label-many", {
|
|
74229
|
+
from: `${referenceIndex + 1}`,
|
|
74230
|
+
to: `${rereferenceIndex}`
|
|
74231
|
+
});
|
|
74232
|
+
}
|
|
74206
74233
|
});
|
|
74207
74234
|
};
|
|
74208
74235
|
var process2 = (md, ctx) => {
|