-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Date handling in Markdown export #875
Comments
I wasn't able to reproduce your issue. Instead I got the following
Is there anything else I should do to reproduce your result? |
I'm running on MacOS Sonoma 14.3.1 (23D60). I installed sc-im with:
After some further testing, if I make the A column wider ( Within sc-im, the cell only displays the formatted date on the right. I think that's what I would prefer to see in the mkd output.
|
I can't reproduce that either! I just see the formatted date in A1. Btw, I'm not a maintainer or anything. I was just troubleshooting a possibly related bug of my own. |
To be clear, I see only the formatted date in A1 from within sc-im. In the mkd file that results from |
Ah, I misunderstood. Yes, I do see that. In that case, it might be related to my bug. I can fix it with the following patch:
which is the same as what I did for #879. FYI @andmarti1424 |
I think the not-enough-room formatting is also a bug. The fact there was enough room for the date when viewing in sc-im directly suggests there should be enough room to show it in the markdown version. |
If a cell has a number representing a date and a label (for future
E
<c-d>
), the cell of the markdown exported table outputs the label instead of the formatted date and appears to have two years in it. I'd prefer the formatted date as show to the user in sc-im.In the example:
\3/5/2024
, Enter,<c-d>
=@now
=@now
, Enter,:valueize
The same date format was applied to all three dates. (
:format \"d%b-%Y\"
)date-mkd.sc
date-mkd.mkd
The text was updated successfully, but these errors were encountered: