Re: [BUG] ox-md image captions

2023-04-05 Thread Vladimir Alexiev
I posted a Pandoc request: https://github.com/jgm/pandoc/issues/8752 On Wed, Apr 5, 2023 at 2:04 PM Ihor Radchenko wrote: > Morgan Willcock writes: > > > If ox-md is trying to do the same thing as Markdown.pl then it doesn't > > really make sense to compare it to CommonMark. > > Most likely, ox

Re: [BUG] ox-md image captions

2023-04-05 Thread Ihor Radchenko
Max Nikulin writes: > My expectation is that Markdown > > ![Alt text](/path/to/img.jpg "Optional title") > > is exported to HTML > > > > If it is so then caption should not be exported as title and it is not > related to markdown extensions. Org caption should appear as text, it > sh

Re: [BUG] ox-md image captions

2023-04-05 Thread Max Nikulin
On 05/04/2023 20:05, Ihor Radchenko wrote: MD has nothing to do with how Pandoc's "implicit_figures" extension modifies MD->HTML export. The original MD spec only talks about image description and image title being exported to "alt" and "title" HTML attributes. My expectation is that Markdown

Re: [PATCH] ANSI color on example blocks and fixed width elements

2023-04-05 Thread Ihor Radchenko
Nathaniel Nicandro writes: > Attached is the patch. Without this patch, ANSI escape sequences > generated by the output of a source block will be left in the buffer > without any fontification. With this patch, the escaped text is nicely > colored and escape sequences hidden using overlays. > >

Re: [BUG] ox-md image captions

2023-04-05 Thread Ihor Radchenko
Max Nikulin writes: >> Upon further investigation, I have found that our base MD reference we >> follow in ox-md is defining image syntax as the following: >> >> ![Alt text](/path/to/img.jpg) >> >> ![Alt text](/path/to/img.jpg "Optional title") >> >> https://daringfireball.net/projects/markdow

Re: [RFC] Limit inline image width by default (was: feature request: easy embedding of images)

2023-04-05 Thread Rudolf Adamkovič
Ihor Radchenko writes: > See the tentative patch. This looks fantastic! +1 for using the Fill Column by default. Rudy -- "The introduction of suitable abstractions is our only mental aid to organize and master complexity." -- Edsger Wybe Dijkstra, 1930-2002 Rudolf Adamkovič [he/him] Studeno

[PATCH] ANSI color on example blocks and fixed width elements

2023-04-05 Thread Nathaniel Nicandro
Hello, Attached is the patch. Without this patch, ANSI escape sequences generated by the output of a source block will be left in the buffer without any fontification. With this patch, the escaped text is nicely colored and escape sequences hidden using overlays. It works for Emacs versions wh

Re: [BUG] ox-md image captions

2023-04-05 Thread Max Nikulin
On 04/04/2023 15:48, Ihor Radchenko wrote: Ihor Radchenko writes: I am inclined to change ![img](url "caption") to ![caption](url) for links without description (links with description do not obey caption in org export). Upon further investigation, I have found that our base MD reference we f

Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el

2023-04-05 Thread Max Nikulin
Ihor, I am sorry, but I sent this message off-list at first. On 04/04/2023 20:29, Ihor Radchenko wrote: Sure. Anything Emacs devs can act on. If you can prove that the problem is in Emacs source code, we can report it in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59882 and let Emacs devs fix

Re: [BUG] ox-md image captions

2023-04-05 Thread Ihor Radchenko
Morgan Willcock writes: > If ox-md is trying to do the same thing as Markdown.pl then it doesn't > really make sense to compare it to CommonMark. Most likely, ox-md is following Markdown.pl simply because there was no better standard at the time ox-md was written. I now looked up a comparison b

Re: [BUG] ox-md image captions

2023-04-05 Thread Morgan Willcock
Ihor Radchenko writes: > Please provide concrete examples where ox-md does not follow > specification. > > The title/caption issue herein does not qualify. > https://spec.commonmark.org/0.30/#images also defines > ![foo](/url "title") with "title" being the title, as we currently use > it in ox-m

Re: [BUG] ox-md image captions

2023-04-05 Thread Ihor Radchenko
Morgan Willcock writes: >> https://daringfireball.net/projects/markdown/syntax#img >> >> Therefore, Org mode is doing everything right within the scope of MD >> specification we follow. Pandoc does not. > > I don't think that Markdown has a single specification. Indeed. And the one in daringfire

Re: [BUG] ox-md image captions

2023-04-05 Thread Morgan Willcock
Ihor Radchenko writes: > Upon further investigation, I have found that our base MD reference we > follow in ox-md is defining image syntax as the following: > > ![Alt text](/path/to/img.jpg) > > ![Alt text](/path/to/img.jpg "Optional title") > > https://daringfireball.net/projects/markdown/syntax

Re: [patch] give tables their own default placement in LaTeX export

2023-04-05 Thread Ihor Radchenko
Ihor Radchenko writes: > Eric S Fraga writes: > >> attached is a small patch to give tables their own default placement in >> LaTeX export. Up to now, tables have used the default placement for >> figures but figures and tables are very different creatures so it does >> not make sense to have j

Re: [PATCH] ox.el: Refactor variable org-html--id-attr-prefix, ox-html.el: Add support for the ID property to org-html--reference

2023-04-05 Thread Ihor Radchenko
Ihor Radchenko writes: > Ihor Radchenko writes: > >> Thanks for the patch! >> See my comments below. > > Feraidoon, have you had a chance to look into my comments? Applied, with amendments, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5e9953fa0 You are now listed

Re: [ISSUE] The Emacs display Org mode "scaled" inline images are blurred

2023-04-05 Thread Ihor Radchenko
stardiviner writes: > Here is the screenshot: > > [image: Screenshot 2023-04-05 at 15.02.08.png] > > It is caused by option `org-image-actual-width`. I set it to bellowing > value: > ```elisp > (setq org-image-actual-width '(600 800 1000)) > ``` > When I set the option `org-image-actual-width` to