Refactor architecture into eight components and consolidate reliability work
Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts. Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation. Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
This commit is contained in:
1 parent
9dd425f765
commit
d5d21b7841
302 files changed
+20037
-3492
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package compiler
|
||||
|
||||
import "pageswiki/internal/grammaratur"
|
||||
|
||||
// HTMLToMarkdownAuthoring delegates loss-preserving conversion to Grammaratur.
|
||||
// Deprecated: use grammaratur.HTMLToMarkdownAuthoring in new application code.
|
||||
func HTMLToMarkdownAuthoring(source string) (string, error) {
|
||||
return grammaratur.HTMLToMarkdownAuthoring(source)
|
||||
}
|
||||
|
||||
// MarkdownAuthoringHTML preserves the existing authoring entry point.
|
||||
// Deprecated: use grammaratur.MarkdownAuthoringHTML in new application code.
|
||||
func MarkdownAuthoringHTML(source string) string {
|
||||
return grammaratur.MarkdownAuthoringHTML(source)
|
||||
}
|
||||
@@ -1,24 +1,8 @@
|
||||
package compiler
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
)
|
||||
import "pageswiki/internal/kunstzeal"
|
||||
|
||||
func DiagramHash(
|
||||
diagramType string,
|
||||
source string,
|
||||
format string,
|
||||
) string {
|
||||
|
||||
sum :=
|
||||
sha256.Sum256(
|
||||
[]byte(
|
||||
diagramType + "\x00" + format + "\x00" + source,
|
||||
),
|
||||
)
|
||||
|
||||
return hex.EncodeToString(
|
||||
sum[:],
|
||||
)
|
||||
// DiagramHash preserves the legacy key format through the rendering component.
|
||||
func DiagramHash(diagramType, source, format string) string {
|
||||
return kunstzeal.DiagramHash(diagramType, source, format)
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
package compiler
|
||||
|
||||
import (
|
||||
htmltomarkdown "github.com/JohannesKaufmann/html-to-markdown/v2"
|
||||
)
|
||||
import "pageswiki/internal/grammaratur"
|
||||
|
||||
// HTMLToMarkdown preserves the legacy conversion contract (without protection
|
||||
// fences). Deprecated: use grammaratur.HTMLToMarkdown in new application code.
|
||||
func HTMLToMarkdown(
|
||||
html string,
|
||||
) (string, error) {
|
||||
|
||||
return htmltomarkdown.ConvertString(
|
||||
return grammaratur.HTMLToMarkdown(
|
||||
html,
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user