{"size": 1043, "ext": "scrbl", "max_stars_repo_path": "share/pkgs/simple-tree-text-markup-doc/scribblings/simple-tree-text-markup/text.scrbl", "max_stars_repo_name": "takikawa/racket-ppa", "max_stars_repo_stars_event_min_datetime": "2018-07-29T04:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T16:11:17.000Z", "max_issues_repo_path": "share/pkgs/simple-tree-text-markup-doc/scribblings/simple-tree-text-markup/text.scrbl", "max_issues_repo_name": "takikawa/racket-ppa", "max_issues_repo_issues_event_min_datetime": "2017-08-25T20:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T17:48:40.000Z", "max_forks_repo_path": "share/pkgs/simple-tree-text-markup-doc/scribblings/simple-tree-text-markup/text.scrbl", "max_forks_repo_name": "takikawa/racket-ppa", "max_forks_repo_forks_event_min_datetime": "2021-07-26T00:31:14.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-09T05:02:43.000Z"}
{"max_stars_count": 10, "max_issues_count": 15, "max_forks_count": 2, "avg_line_length": 40.1153846154, "max_line_length": 97, "alphanum_fraction": 0.7104506232}
#lang scribble/doc

@(require (for-label simple-tree-text-markup/data
	  	     simple-tree-text-markup/text
		     racket) ; output-port?
          scribble/manual)

@title[#:style 'toc #:tag "simple-tree-text-markup-text"]{Rendering Markup to Text}

@defmodule[simple-tree-text-markup/text]

This module renders markup to text by printing to a port.

@defproc[(display-markup [markup markup?] [output-port output-port? (current-output-port)]) any]{
Renders a textual version of @racket[markup] to @racket[output-port].
It uses Unicode lines and corners to display framed markup.}

@defproc[(number-markup->string [number number?]
			        [#:exact-prefix exact-prefix (or/c 'always 'never 'when-necessary) 'never]
	   		        [#:inexact-prefix inexact-prefix (or/c 'always 'never 'when-necessary) 'never]
			        [#:fraction-view fraction-view (or/c #f 'mixed 'improper 'decimal) #f])
	 string?]{
This is a convenience function that generates a textual number representation according to
the specification of @racket[number-markup].
}
