Skip to content

Commit

Permalink
Add text/markdown to MediaType
Browse files Browse the repository at this point in the history
RELNOTES=`net`: Add `text/markdown` to `MediaType`
PiperOrigin-RevId: 656158830
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Jul 26, 2024
1 parent e2b7a33 commit 2466a09
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ private static MediaType addKnownType(MediaType mediaType) {
public static final MediaType CSV_UTF_8 = createConstantUtf8(TEXT_TYPE, "csv");
public static final MediaType HTML_UTF_8 = createConstantUtf8(TEXT_TYPE, "html");
public static final MediaType I_CALENDAR_UTF_8 = createConstantUtf8(TEXT_TYPE, "calendar");

/**
* As described in <a href="https://www.rfc-editor.org/rfc/rfc7763.html">RFC 7763</a>, this
* constant ({@code text/markdown}) is used for Markdown documents.
*
* @since NEXT
*/
public static final MediaType MD_UTF_8 = createConstantUtf8(TEXT_TYPE, "markdown");

public static final MediaType PLAIN_TEXT_UTF_8 = createConstantUtf8(TEXT_TYPE, "plain");

/**
Expand Down
9 changes: 9 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ private static MediaType addKnownType(MediaType mediaType) {
public static final MediaType CSV_UTF_8 = createConstantUtf8(TEXT_TYPE, "csv");
public static final MediaType HTML_UTF_8 = createConstantUtf8(TEXT_TYPE, "html");
public static final MediaType I_CALENDAR_UTF_8 = createConstantUtf8(TEXT_TYPE, "calendar");

/**
* As described in <a href="https://www.rfc-editor.org/rfc/rfc7763.html">RFC 7763</a>, this
* constant ({@code text/markdown}) is used for Markdown documents.
*
* @since NEXT
*/
public static final MediaType MD_UTF_8 = createConstantUtf8(TEXT_TYPE, "markdown");

public static final MediaType PLAIN_TEXT_UTF_8 = createConstantUtf8(TEXT_TYPE, "plain");

/**
Expand Down

0 comments on commit 2466a09

Please sign in to comment.