Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to work with DW master #3

Open
rotdrop opened this issue Feb 9, 2022 · 0 comments
Open

Update to work with DW master #3

rotdrop opened this issue Feb 9, 2022 · 0 comments

Comments

@rotdrop
Copy link

rotdrop commented Feb 9, 2022

Hi, thanks for the plugin. As it shows the xhtml renderer has changed, in particular many methods now accept an extra boolean argument $returnonly where the expected result is that they don't add to $this->doc but rather return the generated snippet directly to the caller without adding to $this->doc, e.g. `header()':

    /**
     ...
     * @param bool   $returnonly whether to return html or write to doc attribute
     ....
     */
    public function header($text, $level, $pos, $returnonly = false) {
        ...
        if ($returnonly) {
            return $header;
        } else {
            $this->doc .= $header;
        } 
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant