emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* The name attribute is obsolete. Consider putting an id attribute
@ 2017-03-18 13:04 Jean Louis
  2017-03-19  9:26 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Jean Louis @ 2017-03-18 13:04 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I am exporting Org to Markdown, and when used with:

<!DOCTYPE html>

<h1>What is GNU CLISP?<a id="sec-1" name="sec-1"></a></h1>

then the validator https://validator.w3.org/ is telling:

Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.

From line 382, column 23; to line 382, column 49

GNU CLISP?<a id="sec-1" name="sec-1"></a></


Is there a way for me to customize that output?

And if not, maybe it shall be corrected.

Jean Louis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-18 13:04 The name attribute is obsolete. Consider putting an id attribute Jean Louis
@ 2017-03-19  9:26 ` Nicolas Goaziou
  2017-03-19 11:54   ` Jean Louis
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2017-03-19  9:26 UTC (permalink / raw)
  To: Jean Louis; +Cc: emacs-orgmode

Hello,

Jean Louis <bugs@gnu.support> writes:

> I am exporting Org to Markdown, and when used with:
>
> <!DOCTYPE html>
>
> <h1>What is GNU CLISP?<a id="sec-1" name="sec-1"></a></h1>

This is not Markdown syntax. You should check the part of your process
responsible for turning Markdown into HTML.

For the record, by default, Org uses "id" instead of "name" when it
generates HTML. See `org-html-allow-name-attribute-in-anchors'.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-19  9:26 ` Nicolas Goaziou
@ 2017-03-19 11:54   ` Jean Louis
  2017-03-19 13:06     ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Jean Louis @ 2017-03-19 11:54 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On Sun, Mar 19, 2017 at 10:26:45AM +0100, Nicolas Goaziou wrote:
> Hello,
> 
> Jean Louis <bugs@gnu.support> writes:
> 
> > I am exporting Org to Markdown, and when used with:
> >
> > <!DOCTYPE html>
> >
> > <h1>What is GNU CLISP?<a id="sec-1" name="sec-1"></a></h1>
> 
> This is not Markdown syntax. You should check the part of your process
> responsible for turning Markdown into HTML.
> 
> For the record, by default, Org uses "id" instead of "name" when it
> generates HTML. See `org-html-allow-name-attribute-in-anchors'.

Here below is the org file, and if I process it with:
emacs tmp/test.org --batch -f org-mode -f org-md-export-to-markdown

Then I get the file, where I can see the following line:
# What is GNU CLISP?<a id="sec-1" name="sec-1"></a>

And the option org-html-allow-name-attribute-in-anchors is off, and I
am not sure if it influences markdown export at all.

Do you know how to turn name= off in org-md-export-to-markdown ?

Jean

-------------- org file below ------------

#+TITLE: GNU CLISP is an ANSI Common Lisp Implementation

* What is GNU CLISP?

[[http://www.lisp.org][Common Lisp]] is a high-level, general-purpose, object-oriented,
dynamic, functional programming language. 

[[http://clisp.org][GNU CLISP]] is a Common Lisp implementation by [[http://www.haible.de/bruno/][Bruno Haible]], then of
Karlsruhe University, and [[http://www.faculty.iu-bremen.de/mstoll/][Michael Stoll]], then of Munich University,
both in Germany. It implements the language described in the [[http://www.lispworks.com/documentation/HyperSpec/Front/][ANSI
Common Lisp standard]] with many extensions.
* What is LISP?

LISP is a list-processing programming language, a flexible functional
programing language that manipulates symbols in the form of lists.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-19 11:54   ` Jean Louis
@ 2017-03-19 13:06     ` Nicolas Goaziou
  2017-03-19 13:12       ` Jean Louis
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2017-03-19 13:06 UTC (permalink / raw)
  To: Jean Louis; +Cc: emacs-orgmode

Hello,

Jean Louis <bugs@gnu.support> writes:

> Here below is the org file, and if I process it with:
> emacs tmp/test.org --batch -f org-mode -f org-md-export-to-markdown
>
> Then I get the file, where I can see the following line:
> # What is GNU CLISP?<a id="sec-1" name="sec-1"></a>

I cannot reproduce it. Are you using latest Org? Did you try without
your personal config?

> And the option org-html-allow-name-attribute-in-anchors is off, and I
> am not sure if it influences markdown export at all.

It does. Markdown back-end is built on top of HTML back-end (e.g., to
translate tables).

Regards,

-- 
Nicolas Goaziou                                                0x80A93738

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-19 13:06     ` Nicolas Goaziou
@ 2017-03-19 13:12       ` Jean Louis
  2017-03-19 13:25         ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Jean Louis @ 2017-03-19 13:12 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On Sun, Mar 19, 2017 at 02:06:55PM +0100, Nicolas Goaziou wrote:
> Hello,
> 
> Jean Louis <bugs@gnu.support> writes:
> 
> > Here below is the org file, and if I process it with:
> > emacs tmp/test.org --batch -f org-mode -f org-md-export-to-markdown
> >
> > Then I get the file, where I can see the following line:
> > # What is GNU CLISP?<a id="sec-1" name="sec-1"></a>
> 
> I cannot reproduce it. Are you using latest Org? Did you try without
> your personal config?
> 
> > And the option org-html-allow-name-attribute-in-anchors is off, and I
> > am not sure if it influences markdown export at all.
> 
> It does. Markdown back-end is built on top of HTML back-end (e.g., to
> translate tables).

I am using this Org version: Version: 20170105.1723, and I am using
GNU Emacs from "GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, X
toolkit, Xaw3d scroll bars) of 2016-12-07"

Option org-html-allow-name-attribute-in-anchors is nil.

Even if I run with the -Q, I get same result, and that is without
personal config:
emacs -Q tmp/test.org --batch -f org-mode -f org-md-export-to-markdown

where I can see in test.md, the following line:

# What is GNU CLISP?<a id="sec-1" name="sec-1"></a>


Any clues?

Jean

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-19 13:12       ` Jean Louis
@ 2017-03-19 13:25         ` Nicolas Goaziou
  2017-03-19 14:13           ` Jean Louis
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2017-03-19 13:25 UTC (permalink / raw)
  To: Jean Louis; +Cc: emacs-orgmode

Hello,

Jean Louis <bugs@gnu.support> writes:

> I am using this Org version: Version: 20170105.1723, and I am using
> GNU Emacs from "GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, X
> toolkit, Xaw3d scroll bars) of 2016-12-07"

You may have a mixed installation.

> Even if I run with the -Q, I get same result, and that is without
> personal config:
> emacs -Q tmp/test.org --batch -f org-mode -f org-md-export-to-markdown

This will load Org 8.2. You need a bare config to load latest Org.

> Any clues?

You could try to update Org.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: The name attribute is obsolete. Consider putting an id attribute
  2017-03-19 13:25         ` Nicolas Goaziou
@ 2017-03-19 14:13           ` Jean Louis
  0 siblings, 0 replies; 7+ messages in thread
From: Jean Louis @ 2017-03-19 14:13 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On Sun, Mar 19, 2017 at 02:25:15PM +0100, Nicolas Goaziou wrote:
> You may have a mixed installation.
> 
> > Even if I run with the -Q, I get same result, and that is without
> > personal config:
> > emacs -Q tmp/test.org --batch -f org-mode -f org-md-export-to-markdown
> 
> This will load Org 8.2. You need a bare config to load latest Org.
> 
> > Any clues?
> 
> You could try to update Org.

I have now upgraded Org, to 9.5, latest version. When I do C-e, m-M or
m-m, I have the correct HTML output without name="" tag.

And after more searching, I found that this line is working well now:

emacs -l ~/.emacs.d/elpa/org-20170210/org-autoloads.el tmp/test.org --batch -f org-mode -f org-md-export-to-markdown

So it is solved for me, and I understood how to use latest
version. Thank you.


Jean Louis

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-19 14:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18 13:04 The name attribute is obsolete. Consider putting an id attribute Jean Louis
2017-03-19  9:26 ` Nicolas Goaziou
2017-03-19 11:54   ` Jean Louis
2017-03-19 13:06     ` Nicolas Goaziou
2017-03-19 13:12       ` Jean Louis
2017-03-19 13:25         ` Nicolas Goaziou
2017-03-19 14:13           ` Jean Louis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).