Hi all, In one of my pages (http://people.untyped.org/damien.pollet/publications/) I include a partial html file generated outside webgen. This is basically a big list with element IDs on the items. I''m trying to link to these, but it does not work (could not resolve path #foo in file.html). My pipeline is blocks,erb,tags,kramdown,fragments,head; I''ve tried to put fragments before kramdown but then it makes other links fail (targeted links as well, but with IDs put on heading elements either automatically or explicitly by kramdown). Is there any chance I can get that to work without typing it in raw html ? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
On 2010-11-10 17:16 +0100 Damien Pollet wrote:> Hi all, > > In one of my pages > (http://people.untyped.org/damien.pollet/publications/) I include a > partial html file generated outside webgen. This is basically a big > list with element IDs on the items. I''m trying to link to these, but > it does not work (could not resolve path #foo in file.html).The fragments processor only generates fragment nodes for HTML header tags with IDs. All other elements that have an ID set, are ignored. This is most probably be the reason why it won''t work. -- Thomas
On Wed, Nov 10, 2010 at 19:57, Thomas Leitner <t_leitner at gmx.at> wrote:> On 2010-11-10 17:16 +0100 Damien Pollet wrote: >> In one of my pages >> (http://people.untyped.org/damien.pollet/publications/) I include a >> partial html file generated outside webgen. This is basically a big >> list with element IDs on the items. I''m trying to link to these, but >> it does not work (could not resolve path #foo in file.html). > > The fragments processor only generates fragment nodes for HTML header > tags with IDs. All other elements that have an ID set, are ignored. > This is most probably be the reason why it won''t work.In fact I had <a name=?> elements, not IDs so that was even worse. But does the fragment processor parse arbitrary HTML, even from an included file? Also, is it really necessary to create nodes? Seems to me, webgen could handle foo/bar#ref links just like it would handle foo/bar, provided it preserves the #ref at the end? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet