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

on-liner text with markdown is not working #10

Closed
mschwehl opened this issue May 1, 2020 · 4 comments
Closed

on-liner text with markdown is not working #10

mschwehl opened this issue May 1, 2020 · 4 comments

Comments

@mschwehl
Copy link

mschwehl commented May 1, 2020

Hello ijgnd

when you have a onliner in your field like test | test2
the html-view shows test | test2 as well (no html-format)

then select all the text test | test2 and press the shortcut for table, the errormessage will be 'select one than more line'

Als there is markdown and a delimiter "|" is provided you can render the table

note: there should be no heading as well if the checkbox heading is unset

Best wishes and thank you much

@ijgnd
Copy link
Owner

ijgnd commented May 1, 2020

when you have a onliner in your field like test | test2 [and] then select all the text ... and press the shortcut for table ...

Yes the solution here is far from perfect. The reason for the message you see is here. This limitation/check is inherited from the original power format pack for 2.0.

I'll try to replace all the custom code and instead rely on an external markdown library which also would fix issues like #7, #8. It's on my todo-list (see #9) but there is no timeline for this. I just updated the ankiweb description to warn about this shortcoming.

 

note: there should be no heading as well if the checkbox heading is unset

This sounds like an error that should not happen. But I can't reproduce it. Can you give me exact steps on how to get this bug. Thanks

@mschwehl
Copy link
Author

mschwehl commented May 2, 2020

here are the steps to reproduce

in a textfield type a {enter} b
output:

a
b

inspect html:

a<div>b</div>

then select all, hit the table button. A dialog showes up, checkbox 'First row is heading' is unchecked. Press ok

you will see that a is written in bold letter

using anki 2.1

best wishes

@ijgnd
Copy link
Owner

ijgnd commented May 2, 2020

Thanks. This seems like another limitation inherited from the power format pack. I added this as a separate issue (#11). I think the fix will be once more #9.

@ijgnd
Copy link
Owner

ijgnd commented Nov 16, 2022

afair I fixed this about 1.5 years ago with cc51fde

@ijgnd ijgnd closed this as completed Nov 16, 2022
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