-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
#8986 Image before Title still respects Title metadata #9162
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
Open
StephanMeijer
wants to merge
4
commits into
jgm:main
Choose a base branch
from
StephanMeijer:feature/8986-image-meta
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
156180b
#8986 Test for image before title
StephanMeijer 05584c0
#8986 fix bug of meta by splitting
StephanMeijer 6ac7e0b
Merge branch 'main' of github.com:jgm/pandoc into feature/8986-image-…
StephanMeijer d20c61b
#8986 different behaviors based on type of meta
StephanMeijer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,182 @@ | ||
[Table ("",[],[]) (Caption Nothing | ||
[]) | ||
[(AlignDefault,ColWidth 1.0)] | ||
(TableHead ("",[],[]) | ||
[]) | ||
[(TableBody ("",[],[]) (RowHeadColumns 0) | ||
[] | ||
[Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[Plain [Str "User\8217s",Space,Str "Guide"]]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[Plain [Str "11",Space,Str "August",Space,Str "2017"]]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]] | ||
,Row ("",[],[]) | ||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1) | ||
[]]])] | ||
(TableFoot ("",[],[]) | ||
[]) | ||
,Para [Str "CONTENTS"] | ||
,Para [Strong [Str "Section",Space,Str "Page"]] | ||
,Para [Str "FIGURES",Space,Link ("",[],[]) [Str "iv"] ("#figures","")] | ||
,Para [Str "TABLES",Space,Link ("",[],[]) [Str "v"] ("#tables","")] | ||
,Para [Str "SECTION",Space,Str "1",Space,Str "Introduction",Space,Link ("",[],[]) [Str "2"] ("#introduction","")] | ||
,Header 1 ("figures",["Heading-0"],[]) [Str "FIGURES"] | ||
,Para [Strong [Str "Figure",Space,Str "Page"]] | ||
,Para [Strong [Str "No",Space,Str "table",Space,Str "of",Space,Str "figures",Space,Str "entries",Space,Str "found."]] | ||
,Header 1 ("tables",["Heading-0"],[]) [Str "TABLES"] | ||
,Para [Strong [Str "Table",Space,Str "Page"]] | ||
,Para [Strong [Str "No",Space,Str "table",Space,Str "of",Space,Str "figures",Space,Str "entries",Space,Str "found."]] | ||
,Header 1 ("introduction",[],[]) [Str "Introduction"] | ||
,Para [Str "Nothing",Space,Str "to",Space,Str "introduce,",Space,Str "yet."]] | ||
Pandoc | ||
Meta | ||
{ unMeta = | ||
fromList [ ( "title" , MetaInlines [ Str "CONTENTS" ] ) ] | ||
} | ||
[ Table | ||
( "" , [] , [] ) | ||
(Caption Nothing []) | ||
[ ( AlignDefault , ColWidth 1.0 ) ] | ||
(TableHead ( "" , [] , [] ) []) | ||
[ TableBody | ||
( "" , [] , [] ) | ||
(RowHeadColumns 0) | ||
[] | ||
[ Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[ Plain [ Str "User\8217s" , Space , Str "Guide" ] ] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[ Plain | ||
[ Str "11" | ||
, Space | ||
, Str "August" | ||
, Space | ||
, Str "2017" | ||
] | ||
] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
, Row | ||
( "" , [] , [] ) | ||
[ Cell | ||
( "" , [] , [] ) | ||
AlignDefault | ||
(RowSpan 1) | ||
(ColSpan 1) | ||
[] | ||
] | ||
] | ||
] | ||
(TableFoot ( "" , [] , [] ) []) | ||
, Para [ Strong [ Str "Section" , Space , Str "Page" ] ] | ||
, Para | ||
[ Str "FIGURES" | ||
, Space | ||
, Link ( "" , [] , [] ) [ Str "iv" ] ( "#figures" , "" ) | ||
] | ||
, Para | ||
[ Str "TABLES" | ||
, Space | ||
, Link ( "" , [] , [] ) [ Str "v" ] ( "#tables" , "" ) | ||
] | ||
, Para | ||
[ Str "SECTION" | ||
, Space | ||
, Str "1" | ||
, Space | ||
, Str "Introduction" | ||
, Space | ||
, Link ( "" , [] , [] ) [ Str "2" ] ( "#introduction" , "" ) | ||
] | ||
, Header | ||
1 ( "figures" , [ "Heading-0" ] , [] ) [ Str "FIGURES" ] | ||
, Para [ Strong [ Str "Figure" , Space , Str "Page" ] ] | ||
, Para | ||
[ Strong | ||
[ Str "No" | ||
, Space | ||
, Str "table" | ||
, Space | ||
, Str "of" | ||
, Space | ||
, Str "figures" | ||
, Space | ||
, Str "entries" | ||
, Space | ||
, Str "found." | ||
] | ||
] | ||
, Header | ||
1 ( "tables" , [ "Heading-0" ] , [] ) [ Str "TABLES" ] | ||
, Para [ Strong [ Str "Table" , Space , Str "Page" ] ] | ||
, Para | ||
[ Strong | ||
[ Str "No" | ||
, Space | ||
, Str "table" | ||
, Space | ||
, Str "of" | ||
, Space | ||
, Str "figures" | ||
, Space | ||
, Str "entries" | ||
, Space | ||
, Str "found." | ||
] | ||
] | ||
, Header | ||
1 ( "introduction" , [] , [] ) [ Str "Introduction" ] | ||
, Para | ||
[ Str "Nothing" | ||
, Space | ||
, Str "to" | ||
, Space | ||
, Str "introduce," | ||
, Space | ||
, Str "yet." | ||
] | ||
] |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
Pandoc | ||
Meta | ||
{ unMeta = | ||
fromList | ||
[ ( "subtitle" | ||
, MetaInlines | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "subtitle" | ||
] | ||
) | ||
, ( "title" | ||
, MetaInlines | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "title" | ||
] | ||
) | ||
] | ||
} | ||
[ Para | ||
[ Image | ||
( "" | ||
, [] | ||
, [ ( "width" , "6.268055555555556in" ) | ||
, ( "height" , "6.268055555555556in" ) | ||
] | ||
) | ||
[ Str "A" | ||
, Space | ||
, Str "cat" | ||
, Space | ||
, Str "holding" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "rainbow" | ||
, Space | ||
, Str "flag." | ||
] | ||
( "media/image1.jpeg" , "" ) | ||
] | ||
, Header | ||
1 | ||
( "this-is-a-heading-1" , [] , [] ) | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "heading" | ||
, Space | ||
, Str "1" | ||
] | ||
, Para | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "some" | ||
, Space | ||
, Str "text." | ||
] | ||
, Header | ||
2 | ||
( "this-is-a-heading-2" , [] , [] ) | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "heading" | ||
, Space | ||
, Str "2" | ||
] | ||
, Para | ||
[ Str "This" | ||
, Space | ||
, Str "is" | ||
, Space | ||
, Str "also" | ||
, Space | ||
, Str "some" | ||
, Space | ||
, Str "text." | ||
] | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do with this. It is entirely logical this is being converted to a
Title
(meta) so I would prefer letting that meaning just sit in there and maybe change the example.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain more fully? Are you saying that the Title style is used for both the document title and the title of the table of contents section?