Skip to content

Tables not rendering (Markdown editor) #2452

Description

@fklappan

Describe the bug
After saving a page with version 0.31.1 using the Markdown editor, the tables are not longer rendered in the page view. Instead the raw text is displayed. The preview works as expected.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Configure BookStack to use the Markdown editor
  2. Create a new page anywhere and create a table with the table syntax. The preview will look just fine
  3. Save the page
  4. The page view no longer displays the table as expected

Expected behavior
The table should be rendered like in older versions or the preview

Screenshots
Preview rendered correct (on the right side) while editing:
image

Page rendering after save (shows raw text):
image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.31.1
  • PHP Version: PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct 7 2020 15:24:25) ( NTS )
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
I already wrote in Discord and @ssddanbrown answered:

That's totally possible as an issue (Have not tested yet).
I switched the final Markdown rendering from front-end to server-side in v0.31 for consistency with the API and better security. It's very likely that back-end rendered does not currently render tables.
Feel free to raise

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions