Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to put a 80 character limit on a long topic line in markdown? Post 303034725 by Neo on Friday 3rd of May 2019 09:14:45 AM
Old 05-03-2019
Also, from the GitLabs Markdown page:

Newlines

If this is not rendered correctly

see
Code:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/user/markdown.md#newlines

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Number of long limit

Hi Hi! I'm currently using AIX 5.2 and would like to know where can i find to see that there's a restriction on the number of login times a user can have. Example, I want give a 2 login per user but some one to give 3 login and some one have to give unlit login time (without logging off the... (2 Replies)
Discussion started by: herath
2 Replies

2. UNIX for Advanced & Expert Users

How to put limit on a file size?

Hi All, I want to insert xyz.log file in CLOB field of Oracle DB. The log file increases its size dynamically. When i am inserting the file into DB i have to check the size of the file, if its size is more than 32KB then insert upto that size into CLOB field of DB. Otherwise proceed normally. ... (1 Reply)
Discussion started by: rajeshorpu
1 Replies

3. Solaris

Line too long error Replace string with new line line character

I get a file which has all its content in a single row. The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file. I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Discussion started by: ducati
4 Replies

4. Shell Programming and Scripting

Ignore the 255 character limit of command line

Hi I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line? My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies

5. UNIX for Dummies Questions & Answers

Put a character before each line

i have few lines: 3 4 5 6 #72 9 9 9 4 5 67 8 9 #4 6 8 92 1i want to put '#' before each line. i used this awk '{print "#" $0;}it gave #3 4 5 6 ##72 9 9 9 #4 5 67 8 9 ##4 6 8 92 1but i want the output like this: #3 4 5 6 #72 9 9 9 #4 5 67 8 9 #4 6 8 92 1I want to avoid the character... (5 Replies)
Discussion started by: arindam guha
5 Replies

6. Shell Programming and Scripting

Printf or any other method to put long string of spec characters - passing passwords

Hello, I am looking for a method to use in my bash script which allows me to use long strings with all special characters. I have found that printf method could be helpful for me but unfortunately, when I trying root@machine:~# tevar=`printf "%s%c"... (2 Replies)
Discussion started by: elxa1
2 Replies

7. Shell Programming and Scripting

Limit on number of pipes after long-running command?

I'm trying to create a minimal, crude keylogger for X using only a shell script. I was quickly stumped: Why do these two commands entered in a terminal emulator produce output when I type... $ xinput test 6 | grep press $ xinput test 6 | awk '{print $3}' ...but this command produces no... (13 Replies)
Discussion started by: DevuanFan
13 Replies

8. UNIX for Beginners Questions & Answers

awk command input string too long, limit

cat filename| awk '{ $1=""; print $0}' in my file there are few lines that has more than 3000 characters per line and as soon as I run the above command it cores, strings core reveals that the awk is failing because input string too long, limit. can i get some help from the experts to find... (8 Replies)
Discussion started by: knijjar
8 Replies
MKD_FUNCTIONS(3)					   BSD Library Functions Manual 					  MKD_FUNCTIONS(3)

NAME
mkd_functions -- access and process Markdown documents. LIBRARY
Markdown (libmarkdown, -lmarkdown) SYNOPSIS
#include <mkdio.h> int mkd_compile(MMIOT *document, int flags); int mkd_css(MMIOT *document, char **doc); int mkd_generatecss(MMIOT *document, FILE *output); int mkd_document(MMIOT *document, char **doc); int mkd_generatehtml(MMIOT *document, FILE *output); int mkd_xhtmlpage(MMIOT *document, int flags, FILE *output); int mkd_toc(MMIOT *document, char **doc); void mkd_generatetoc(MMIOT *document, FILE *output); void mkd_cleanup(MMIOT*); char* mkd_doc_title(MMIOT*); char* mkd_doc_author(MMIOT*); char* mkd_doc_date(MMIOT*); DESCRIPTION
The markdown format supported in this implementation includes Pandoc-style header and inline <style> blocks, and the standard markdown(3) functions do not provide access to the data provided by either of those extensions. These functions give you access to that data, plus they provide a finer-grained way of converting Markdown documents into HTML. Given a MMIOT* generated by mkd_in() or mkd_string(), mkd_compile() compiles the document into <style>, Pandoc, and html sections. Once compiled, the document can be examined and written by the mkd_css(), mkd_document(), mkd_generatecss(), mkd_generatehtml(), mkd_generatetoc(), mkd_toc(), mkd_xhtmlpage(), mkd_doc_title(), mkd_doc_author(), and mkd_doc_date() functions. mkd_css() allocates a string and populates it with any <style> sections provided in the document, mkd_generatecss() writes any <style> sec- tions to the output, mkd_document() points text to the text of the document and returns the size of the document, mkd_generatehtml() writes the rest of the document to the output, and mkd_doc_title(), mkd_doc_author(), mkd_doc_date() are used to read the contents of a Pandoc header, if any. mkd_xhtmlpage() writes a xhtml page containing the document. The regular set of flags can be passed. mkd_toc() writes a document outline, in the form of a collection of nested lists with links to each header in the document, into a string allocated with malloc(), and returns the size. mkd_generatetoc() is like mkd_toc(), except that it writes the document outline to the given FILE* argument. mkd_cleanup() deletes a MMIOT* after processing is done. mkd_compile() accepts the same flags that markdown() and mkd_string() do; MKD_NOIMAGE Do not process `![]' and remove <img> tags from the output. MKD_NOLINKS Do not process `[]' and remove <a> tags from the output. MKD_NOPANTS Do not do Smartypants-style mangling of quotes, dashes, or ellipses. MKD_TAGTEXT Process the input as if you were inside a html tag. This means that no html tags will be generated, and mkd_compile() will attempt to escape anything that might terribly confuse a web browser. MKD_NO_EXT Do not process any markdown pseudo-protocols when handing [][] links. MKD_NOHEADER Do not attempt to parse any Pandoc-style headers. MKD_TOC Label all headers for use with the mkd_generatetoc() function. MKD_1_COMPAT MarkdownTest_1.0 compatibility flag; trim trailing spaces from the first line of code blocks and disable implicit refer- ence links. MKD_NOSTRIKETHROUGH Disable strikethrough support. RETURN VALUES
The function mkd_compile() returns 1 in the case of success, or 0 if the document is already compiled. The function mkd_generatecss() returns the number of bytes written in the case of success, or EOF if an error occurred. The function mkd_generatehtml() returns 0 on suc- cess, -1 on failure. SEE ALSO
markdown(1), markdown(3), mkd-line(3), markdown(7), mkd-extensions(7), mmap(2). http://daringfireball.net/projects/markdown/syntax BUGS
Error handling is minimal at best. Mastodon January 18, 2008 Mastodon
All times are GMT -4. The time now is 02:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy