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

table header continuous delimiter #866

Open
ericdplau2023 opened this issue Mar 5, 2024 · 1 comment
Open

table header continuous delimiter #866

ericdplau2023 opened this issue Mar 5, 2024 · 1 comment

Comments

@ericdplau2023
Copy link

| Software Requirements ||
| --- | --- |
| **SDK Version** | Emscripten 1.39.0 |

Tableheader has continuous delimiter, is not parser correctly.


Parsedown.php: 958

$header = trim($header);
$header = trim($header, '|');

I making this modification, it works...

$header = trim($header);
//$header = trim($header, '|');

if ($header[0] === '|') {
    $header = substr($header, 1, -1);
}
@ericdplau2023
Copy link
Author

    // bugs for `| header-1 ||` or `|| header-2|`
    if (substr($header, -1) === '|') {
        $header = substr($header, 1, -1);
    }

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