Skip to content

Images in Language Specification #6144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 23, 2015
Merged

Images in Language Specification #6144

merged 5 commits into from
Dec 23, 2015

Conversation

ahejlsberg
Copy link
Member

Fixes #1566.

@@ -47,6 +47,7 @@ function convertDocumentToMarkdown(doc) {
var tableColumnCount;
var tableCellIndex;
var columnAlignment = [];
var imageCount = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this in the original .ts.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed it again.

@DanielRosenwasser
Copy link
Member

Can we remove the generated .js file? It seems unnecessary.

Also, where exactly are you saving the images themselves? It's not clear from the code here.

@yuit
Copy link
Contributor

yuit commented Dec 18, 2015

agree with @DanielRosenwasser about removing generated javascript file.
Regarding image, I think it is in the doc folder which is where spec.md is in

var level = 1;
var sectionBreak = text.indexOf("\x0C") >= 0;

text = trimEndFormattingMarks(text);
if (text === "/") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does this mean? Can you leave a comment with the explanation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will add a comment. An inline image shows up in the text just as a "/". When I see a paragraph consisting of nothing but "/", I check to see if the paragraph contains hidden text and if so I emit that instead. The hidden text is assumed to contain an appropriate markdown image link. I could look at automatically extracting the images, but I'm not sure how much time I want to sink into further exploring the Word object model.

@DanielRosenwasser
Copy link
Member

I get that, I'm more curious as to what in the code exactly does that. Was extracting images out a manual process, or is it automated now? As long as we're generally confident we won't be adding more images, either is fine.

@DanielRosenwasser
Copy link
Member

👍

ahejlsberg added a commit that referenced this pull request Dec 23, 2015
Images in Language Specification
@ahejlsberg ahejlsberg merged commit 72bb1d3 into master Dec 23, 2015
@ahejlsberg ahejlsberg deleted the langSpecImages branch December 23, 2015 00:49
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants