Add CHANGLELOG section to documentation
This commit is contained in:
parent
a76ceebc22
commit
06326eeb32
@ -1,25 +0,0 @@
|
||||
package ru.noties.markwon;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Color;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
|
||||
import ru.noties.markwon.il.AsyncDrawableLoader;
|
||||
import ru.noties.markwon.il.GifMediaDecoder;
|
||||
import ru.noties.markwon.il.ImageMediaDecoder;
|
||||
import ru.noties.markwon.il.SvgMediaDecoder;
|
||||
import ru.noties.markwon.renderer.html2.CssInlineStyleParser;
|
||||
import ru.noties.markwon.renderer.html2.CssProperty;
|
||||
import ru.noties.markwon.renderer.html2.MarkwonHtmlRenderer;
|
||||
|
||||
public class Blah {
|
||||
|
||||
static {
|
||||
final CssInlineStyleParser inlineStyleParser = CssInlineStyleParser.create();
|
||||
for (CssProperty property: inlineStyleParser.parse("width: 100%; height: 100%;")) {
|
||||
// [0] = CssProperty({width=100%}),
|
||||
// [1] = CssProperty({height=100%})
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<a :href="githubIssueHref">{{linkContent}}</a>
|
||||
<a :href="githubIssueHref" target="_blank" rel="noopener noreferrer">{{linkContent}}<OutboundLink/></a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
27
docs/.vuepress/components/GithubPull.vue
Normal file
27
docs/.vuepress/components/GithubPull.vue
Normal file
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<a :href="githubPullHref" target="_blank" rel="noopener noreferrer">{{linkContent}}<OutboundLink/></a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "GithubPull",
|
||||
props: {
|
||||
id: { required: true },
|
||||
user: {
|
||||
default: 'noties'
|
||||
},
|
||||
repo: {
|
||||
default: 'Markwon'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
githubPullHref: function() {
|
||||
return "https://github.com/" + this.user + "/" + this.repo + "/pull/" + this.id
|
||||
},
|
||||
linkContent: function() {
|
||||
return "#" + this.id;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
21
docs/.vuepress/components/GithubUser.vue
Normal file
21
docs/.vuepress/components/GithubUser.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<a :href="githubUserProfileHref" target="_blank" rel="noopener noreferrer"><b>{{linkContent}}</b><OutboundLink/></a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "GithubUser",
|
||||
props: {
|
||||
name: { required: true }
|
||||
},
|
||||
computed: {
|
||||
githubUserProfileHref: function() {
|
||||
return "https://github.com/" + this.name;
|
||||
},
|
||||
linkContent: function() {
|
||||
return "@" + this.name;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -1 +1,52 @@
|
||||
# Changelog
|
||||
# Changelog
|
||||
|
||||
# v1.1.1
|
||||
* Fix OrderedListItemSpan text position (baseline) (<GithubIssue id="55" />)
|
||||
* Add softBreakAddsNewLine option for SpannableConfiguration (<GithubIssue id="54" />)
|
||||
* Paragraph text can now explicitly be spanned (<GithubPull id="58" />)<br>Thanks to <GithubUser name="c-b-h" />
|
||||
* Fix table border color if odd background is specified (<GithubIssue id="56" />)
|
||||
* Add table customizations (even and header rows)
|
||||
|
||||
## v1.1.0
|
||||
* Update commonmark to 0.11.0 and android-gif to 1.2.14
|
||||
* Add syntax highlight functionality (`library-syntax` module and `markwon-syntax` artifact)
|
||||
* Add headingTypeface, headingTextSizes to SpannableTheme<br>Thanks to <GithubUser name="edenman" />
|
||||
* Introduce `MediaDecoder` abstraction to `image-loader` module
|
||||
* Introduce `SpannableFactory`<br>Thanks for idea to <GithubUser name="c-b-h" />
|
||||
* Update sample application to use syntax-highlight
|
||||
* Update sample application to use clickable placeholder for GIF media
|
||||
|
||||
## v1.0.6
|
||||
* Fix bullet list item size (depend on text size and not top-bottom arguments)
|
||||
* Add ability to specify MovementMethod when applying markdown to a TextView
|
||||
* Markdown images size is also resolved via ImageSizeResolver
|
||||
* Moved `ImageSize`, `ImageSizeResolver` and `ImageSizeResolverDef`
|
||||
to `ru.noties.markwon.renderer` package (one level up, previously `ru.noties.markwon.renderer.html`)
|
||||
|
||||
## v1.0.5
|
||||
* Change LinkSpan to extend URLSpan. Allow default linkColor (if not set explicitly)
|
||||
* Fit an image without dimensions to canvas width (and keep ratio)
|
||||
* Add support for separate color for code blocks (<GithubPull id="37" />)<br>Thanks to <GithubUser name="Arcnor" />
|
||||
|
||||
## v1.0.4
|
||||
* Fixes <GithubIssue id="28"/> (tables are not rendered when at the end of the markdown)
|
||||
* Adds support for `indented code blocks`<br>Thanks to <GithubUser name="dlew"/>
|
||||
|
||||
## v1.0.3
|
||||
* Fixed ordered lists (when number width is greater than block margin)
|
||||
|
||||
## v1.0.2
|
||||
* Fixed additional white spaces at the end of parsed markdown
|
||||
* Fixed headings with no underline (levels 1 & 2)
|
||||
* Tables can have no borders
|
||||
|
||||
## v1.0.1
|
||||
* Support for task-lists (<GithubIssue id="2" />)
|
||||
* Spans now are applied in reverse order (<GithubIssue id="5" /> <GithubIssue id="10" />)
|
||||
* Added `SpannableBuilder` to follow the reverse order of spans
|
||||
* Updated `commonmark-java` to `0.10.0`
|
||||
* Fixes <GithubIssue id="1" />
|
||||
|
||||
## v1.0.0
|
||||
|
||||
Initial release
|
@ -476,16 +476,6 @@ public class SpannableMarkdownVisitor extends AbstractVisitor {
|
||||
start,
|
||||
length
|
||||
);
|
||||
|
||||
// final int length = builder.length();
|
||||
//
|
||||
// if (span.getClass().isArray()) {
|
||||
// for (Object o : ((Object[]) span)) {
|
||||
// builder.setSpan(o, start, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
// }
|
||||
// } else {
|
||||
// builder.setSpan(span, start, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user