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

markdown rendering bug in list component in sqlpage version v0.32.1 #769

Closed
nip1904 opened this issue Jan 10, 2025 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@nip1904
Copy link

nip1904 commented Jan 10, 2025

Introduction

The markdown rendering in list component in this version is buggy.
No problems in table component.
Version v0.32.0 works as expected

To Reproduce

List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema

select
   'list'               as component;
select 
   'item1'              as title,
   'item1'              as description;
select
   'item2'              as title,
   'test@example.com'   as description_md;
select
   'item3'              as title,
   '[item3](link.sql)'  as description_md;
select
   'item4'              as title,
   '**item4**'          as description_md;

select
   'table'              as component,
   'item2'              as markdown,
   'item3'              as markdown;
select
   'item1'              as item1,
   'test@example.com'   as item2,
   '[item3](link.sql)'  as item3;

Actual behavior

After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here

your error message here

Screenshots

html_source_0_32_0
html_source_0_32_1
version_0_32_0
version_0_32_1

Expected behavior

A clear and concise description of what you expected to happen.

Version information

  • OS:
  • Database [e.g. SQLite, Postgres]
  • SQLPage Version [found when hovering the default footer of pages]:

Additional context

Add any other context about the problem here.

@nip1904 nip1904 added the bug Something isn't working label Jan 10, 2025
@lovasoa
Copy link
Collaborator

lovasoa commented Jan 10, 2025

Indeed ! I see the problem, but I don't see an obvious solution. Nested links (links inside of links) are forbidden on the web. So we can (and I will) fix this in the case where the link property is not defined, but not in the general case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants