diff --git a/RENDER.md b/RENDER.md index c178d818..b138d4c9 100644 --- a/RENDER.md +++ b/RENDER.md @@ -18,9 +18,10 @@ flowchart TD 2rss(RSS detection) --> 2F(W inclusion 2) --> 2H(Wiki links) --> - 2I(Link and media analysis) + 2I(Link and media analysis) --> + 2pp(check for post render actions) end - 2I --> + 2pp --> 3B((Head and Body gathering)) --> 3C[[Rendered HTML]] --> 4c subgraph "post render actions" @@ -43,6 +44,7 @@ flowchart TD 1E -. "send TOC structure" .-> 2D 2rss -. "send rss links" .-> 0rss + 2pp -. trigger post render action .-> 4c ``` - *every link: rendering option that transform every word as a link diff --git a/app/class/Servicerender.php b/app/class/Servicerender.php index 90b5d6db..f9efceab 100644 --- a/app/class/Servicerender.php +++ b/app/class/Servicerender.php @@ -117,7 +117,7 @@ public function rendermanual(string $text): string private function gethmtl() { - $body = $this->parsebody($this->readbody()); + $body = $this->bodyconstructor($this->readbody()); $parsebody = $this->bodyparser($body); $this->postprocessaction = $this->checkpostprocessaction($parsebody); $head = $this->gethead(); @@ -156,7 +156,7 @@ private function readbody() * * @return string as the full rendered BODY of the page */ - private function parsebody(string $body): string + private function bodyconstructor(string $body): string { $body = $this->basicinclusions($body);