Tinacms Developer Docs

10 October 2024

This meeting covers several discussions on TinaCMS's functionality, testing setup, and configuration improvements. Here’s a summary of the main points:

🤖🤖

  1. Visual Editing in Gatsby:

    • The team discussed progress on visual editing support within Gatsby, noting successes and challenges with creating fake GraphQL queries for preview purposes.
  2. Testing Migration to Playwright:

    • The team reviewed the shift from Cypress to Playwright for testing. Jeff outlined custom assertions and test setups for the rich text editor, including how specific tests verify custom behaviors like soft line breaks. The team also discussed the possibility of cleaning test data before each run for consistency.
  3. Markdown Processing and Shortcodes:

    • Issues with markdown and shortcode processing were discussed, especially the need to support custom Hugo-style shortcodes. Jeff explained how pre-processing and stringifying markdown works in TinaCMS and identified areas where legacy code could be removed to streamline this functionality.
  4. Image Path Handling:

    • They explored how image paths are managed, particularly for cases where images are co-located with content files rather than in a public directory. The team considered adding configurations to better support custom media paths.
  5. Rich Text Table Support:

    • There was a discussion on handling tables within the rich text editor, specifically focusing on table support in GitHub-flavored markdown. Jeff noted that older table implementations could be deprecated, with new features now handling this functionality more effectively.
  6. Auto-Formatting and Custom Formatting Control:

    • The team addressed user feedback on auto-formatting in markdown, especially with items like headers and lists. Jeff discussed the possibility of exposing a configuration option to allow users to control formatting settings directly, including integrating with Prettier.

This session focused on refining TinaCMS’s compatibility with various configurations, improving testing workflows, and enhancing markdown and image handling to improve the user experience and simplify code maintenance.

On this page