Code Monkey home page Code Monkey logo

Comments (7)

jecisc avatar jecisc commented on June 4, 2024

Before Figures was just a Link embedded (on the model of Pillar) so we needed a special variable to know if a link was a link or a figure.

Now the figures are not links. This "embedded" variable is maybe not needed anymore.

from pillar.

jecisc avatar jecisc commented on June 4, 2024

For now PRPillarWriter>>#visitReference check if the reference is embedded or not to determine the markup.
I propose to remove that and add:

     PRPillarWriter>>#visitLink: aLink
        canvas raw: aLink class markup.
        super visitLink: aLink.
        canvas raw: aLink class markup

and

    PRPillarWriter>>#visitFigure: aFigure
       canvas raw: aFigure class markupEmbedded.
       super visitFigure: aFigure.
       canvas raw: aFigure class markupEmbedded

but if I do that I need to remove some tests (or at least move them to specific subclasses) because now, for example, an external link have the possibility to be embedded (See PRExternalLinkTest(PRReferenceTest)>>#testParseEmbeddedAliased ). I think we do not want that.

from pillar.

jecisc avatar jecisc commented on June 4, 2024

@DamienCassou what do you think of that ?
I prefer ask when I have to move/remove tests :)

from pillar.

jecisc avatar jecisc commented on June 4, 2024

I worked a little on it.
If @DamienCassou think it's good we can close the case with a new configuration of Pillar.

Name: Pillar-Model-CyrilFerlicot.228
Author: CyrilFerlicot
Time: 8 September 2015, 7:09:13.676662 pm
UUID: 9dccd0fa-b1d0-0042-9a1e-7a25e252ac60
Ancestors: Pillar-Model-DamienCassou.227

The embedded instance variable of PRReference is useless since we have Figures. I removed it and I improved the tests.

(See also Name: Pillar-Tests-ExporterMarkdown-CyrilFerlicot.28, Name: Pillar-Tests-ExporterCore-CyrilFerlicot.135, Name: Pillar-PetitPillar-CyrilFerlicot.100, Name: Pillar-ExporterPillar-CyrilFerlicot.32, Name: Pillar-Tests-ExporterLaTeX-CyrilFerlicot.97, Name: Pillar-Tests-Model-CyrilFerlicot.168)

from pillar.

DamienCassou avatar DamienCassou commented on June 4, 2024

I love it. Now, is this change backward incompatible? If it is, we should release a 2.0.0 version. But I would like to have PetitPillar in by default if we do that. If it's not backward incompatible, we should release a 1.1.3.

For me, this change is backward compatible because Pillar (as opposed to Pier) only had figures as embedded references, nothing else. So we don't loose any officially-supported feature with your patch.

What do you think?

from pillar.

jecisc avatar jecisc commented on June 4, 2024

For me it is backward compatible because the users of Pillar itself will see no change. This is not a part of the public API.
So I think we should do a 1.1.3.

from pillar.

DamienCassou avatar DamienCassou commented on June 4, 2024

this has been merged. Thanks Cyril

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.