Code Monkey home page Code Monkey logo

Comments (5)

YannDub avatar YannDub commented on June 18, 2024

The users could enable or disable this enhancement ? Because I think for a static web site it could be better to choose.

from pillar.

DamienCassou avatar DamienCassou commented on June 18, 2024

ok for me

from pillar.

YannDub avatar YannDub commented on June 18, 2024

It's done with :

  • Pillar-ExporterCore-YannDubois.264
  • Pillar-Model-YannDubois.246

and tests :

  • Pillar-Tests-Model-YannDubois.181

A todo is stay, because it's possible to have duplicated anchors

from pillar.

YannDub avatar YannDub commented on June 18, 2024

I work on the duplicated anchors, and for now, the automatic generated anchors name are always encoded like :
anchorName@occurence

  • anchorName : the name of the anchor.
  • @ : a character to separate the name and the occurence.
  • occurence : the actual number (when I browse the tree) of the anchor.

But this way don't work when we have already an anchor with a name which will be generated, for example (in html) :

<h1>Test</h1>
....
<a id='Test@1'></a>

It will render after transformation :

<h1>Test</h1>
<a id='Test@1'></a>
....
<a id='Test@1'></a>

If you have a better idea...

from pillar.

YannDub avatar YannDub commented on June 18, 2024

I managed the duplicated anchors with :

  • Pillar-Model-YannDubois.252
  • Pillar-Tests-Model-YannDubois.186

I use my previous post but I extend the idea to checking anchors before transformation.

from pillar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.