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

Render markdown tables in legislation draft #5136

Commits on Jun 29, 2023

  1. Render markdown tables in legislation draft

    * Add Tables option to Redcarpet in Legislation draft
    
    * Allow table tags in Admin Legislation Sanitizer
    
    * Add Test to render markdown tables in Legislation drafts
    
    * Add Test for Admin Legislation Sanitizer
    
    We include test for image, table and h1 to h6 tags and additional tests to strengthen the allowed and disallowed parameters
    
    * Add Table from markdown test in System and Factories
    
    * Add test to render  tables for admin user
    
    * Remove comment line about Redcarpet options
    
    * Edit custom css for legislation draft table to make it responsive
    karim-semmoud committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    3faaa85 View commit details
    Browse the repository at this point in the history
  2. Use the same extensions in all markdown renderers

    We were using two different sets of extensions but, since the markdown
    code is always written by administrators, IMHO it makes sense to be
    consistent and always render markdown code the same way.
    javierm authored and karim-semmoud committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    7912020 View commit details
    Browse the repository at this point in the history
  3. Extract markdown helper logic to a class

    This way it'll be easier for other Consul installations to overwrite
    parts of the code, like the default options.
    javierm authored and karim-semmoud committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    af618ea View commit details
    Browse the repository at this point in the history