Comments (7)
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.
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.
@DamienCassou what do you think of that ?
I prefer ask when I have to move/remove tests :)
from pillar.
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.
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.
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.
this has been merged. Thanks Cyril
from pillar.
Related Issues (20)
- Command lines interpretation should take into account pillar.conf when present
- pillar build pdf -m AFILE ignores AFILE HOT 1
- Passing two or more files on the command line breaks
- Giving .m file should not break Pillar
- better report when a given file does not exist. HOT 1
- Selection logic of writer in AbstractOutputDocument subclasses should be revisited
- Some PRMicrodownWriter tests are broken... HOT 1
- outputDirectory is a mess HOT 2
- Link not correctly converted from Pillar to Microdown
- Need to remove file:// in path when we convert from Pillar to Microdown
- pillar build pdf can say that there are multiple pillar files
- pillar help is not working anymore
- pillar version should print the tag and git hash of the currently executed code
- Bad path resolution when building an individual files HOT 6
- When migrating pillar.conf pay attention not to append mic to latexWriter ...
- Simple example not working HOT 3
- Give file to build in config HOT 2
- Save artifact of release and use them in pillar installation
- pillar archetype bod-book HOT 1
- Bad dependency :( HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillar.