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

Tables Seem To Not Tokenize Properly #563

Open
NathanielSunday opened this issue Dec 17, 2024 · 0 comments
Open

Tables Seem To Not Tokenize Properly #563

NathanielSunday opened this issue Dec 17, 2024 · 0 comments

Comments

@NathanielSunday
Copy link

I am using v19.0.0 of ngx-markdown. I am having trouble with getting tables to parse properly. It would seem that anything that should be tokenized as a

tag after a table gets tokenized as a part of the table instead. In the TS snippet below, 'spell' is just a template to hold the JSON object and follows the same structure as the JSON object in the API, which I provided through the API link below. I also provided CSS, settings, and an image of errant behavior.

API table example

TS snippet of where the table is being rendered

<div markdown>
  {{ spell.desc.join('\\n') }}
</div>

CSS snippet

div {
  white-space: pre-wrap;
}

table {
  table-layout: fixed;
  width: 100%;
}

Settings snippet

provideMarkdown({
  sanitize: SecurityContext.NONE,
})

End result
image

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

2 participants
@NathanielSunday and others